Class schedule::Geometric
The schedule (or schedule segment) interpolates geometrically from initial
to final
value over the input interval.
Configuration:
- Basic definition:
"schedule": {
"type": "geometric",
"initial": 1.0,
"final": 0.3
}
- With input range:
"schedule": {
"type": "geometric",
"initial": 1.0,
"final": 0.3
"start": 0,
"stop": 10
}
- With count:
"schedule": {
"type": "geometric",
"initial": 1.0,
"final": 0.3
"count": 11
}
Inherited Members
Constructors
Geometric()
Declaration
schedule::Geometric::Geometric()
Geometric()
Declaration
schedule::Geometric::Geometric(double initial_value, double final_value)
Methods
get_progress_value()
Get the value at a relative position in the input interval.
Arguments: progress
relative input position \in [0..1]
Returns: the interpolated value
Declaration
double schedule::Geometric::get_progress_value(double progress) const override
configure()
Configure the Geometric generator from input.
This expects the initial
and final
value to interpolate.
Declaration
void schedule::Geometric::configure(const utils::Json&json) override
render()
Return the config value for schedule.
Declaration
utils::Structure schedule::Geometric::render() const override