CronoSeries  0.1.*
A fork of Cronos with a focus on being a Time Series class library.
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
CronoSeries.TimeSeries.Miscellaneous.StepFunction Class Reference

This class keeps track of a step function mapping R -> R. It is assumed that the function only changes (has steps) in a region with compact support. More...

Public Member Functions

 StepFunction (double[] args, double[] values)
 
double MonotonicIncreasingInverse (double x)
 
double ValueAtTime (double t)
 returns value at time t (i.e. last change at a time <= t) More...
 
double InterpolatedValue (double t)
 

Static Public Member Functions

static StepFunction operator* (StepFunction x, double multiplier)
 
static StepFunction operator+ (StepFunction x, StepFunction y)
 

Public Attributes

bool IsEmpty => Args.Length == 0
 
int Length => Args.Length
 

Properties

double[] Args [get, protected set]
 
double[] Values [get, protected set]
 

Detailed Description

This class keeps track of a step function mapping R -> R. It is assumed that the function only changes (has steps) in a region with compact support.

Member Function Documentation

◆ ValueAtTime()

double CronoSeries.TimeSeries.Miscellaneous.StepFunction.ValueAtTime ( double  t)
inline

returns value at time t (i.e. last change at a time <= t)

Parameters
t
Returns

The documentation for this class was generated from the following file: