コンテンツにスキップ

SegmentContext

このコンテンツはまだ日本語訳がありません。

Defined in: segment.rs:31

pub struct SegmentContext {
pub start: f64,
pub end: f64,
}

The interval a solver is stepping through, between two switches of the right-hand side.

start and end are integration times, start < end. A system that reads a schedule answers for the whole segment as it stood at start, whatever stage time it is handed.

The state at start is deliberately absent. Freezing a state-dependent term over a segment would turn a continuous-time feedback law into a sampled-data one, and make the result depend on how the span happens to be split. A schedule in time is what a segment fixes; a term that reads the state keeps reading the stage state.

start: f64

Integration time the segment starts at.


end: f64

Integration time the segment ends at.


fn new(start: f64, end: f64) -> Self

A segment spanning [start, end].