piglot.parameter.Parameter

class Parameter(name: str, inital_value: float, lbound: float, ubound: float)[source]

Bases: object

Base parameter class.

Methods

clip

Clamp a value to the [lbound,ubound] interval.

clip(value: float) float[source]

Clamp a value to the [lbound,ubound] interval.

Parameters

valuefloat

Value to clip.

Returns

float

Clamped value.