measurement

stores marginal distributions for random variables

class cmepy.measurement.Measurement(name=None, transform=None)

Stores the marginal distributions for a random variable.

Measurement instances are created by cmepy.recorder.CmeRecorder objects.

The random variable is specified by its name and transform when instantiating a Measurement object.

Statistics, computed from the marginal distributions, may be accessed as attributes (this access is read only and not cached, it is computed each time it is accessed).

get_statistic(stat_name)

Returns list of statistic values over time.

Alternatively, statistics may be obtained directly as attributes of the Measurement instance m, that is,

m.get_statistic(stat_name) <=> m.stat_name

write(t, p)
Writes the time t and marginal distribution derived from p.

Previous topic

lexarrayset

Next topic

model

This Page