class

Egui::History

Inherits Reference < Object

Constructors

new(length_range : Range(Int32, Int32), max_age : Float64)
Source

Instance methods

add(now : Float64, value : Float64) : Nil

Values must be added with a non-decreasing time.

Source
clear
Source
duration

Time contained from the first to the last sample.

Source
empty?
Source
flush(now : Float64) : Nil

Drop samples that are too old / too many.

Source
latest
Source
max_age
Source
max_len
Source
size
Source
total_count
Source
velocity

Smooth velocity (per second) over the time span: last value minus first value over the elapsed time between them.

Source