__init__(self,
name,
range=None,
step=0.0,
values=None,
cyclic=False,
value_offset=0.0,
value_multiplier=1.0,
compute_fn=None,
offset=0,
keep_peak=True)
(Constructor)
| source code
|
Users can provide either a range and a step size, or a list of values.
If a list of values is supplied, the range can be omitted unless the
default of the min and max in the list of values is not appropriate.
If non-None, the compute_fn should be a function that when given a list
of other parameter values, computes and returns the value for this feature.
If supplied, the offset is added to the given or computed values to allow
the starting value to be specified.
- Overrides:
object.__init__
|