public class CyclicalStepwiseIntegratedRate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private double[] |
cumIntRates |
private double[] |
rates |
private double[] |
times |
Constructor and Description |
---|
CyclicalStepwiseIntegratedRate(double[] rates,
double[] times)
Rate rates[i] holds in time interval (times[i], times[i+1]).
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCumIntRates()
These are the cumulative integrated rates.
|
double |
getLambdaInv(double y)
For a given time, returns the corresponding inverse integrated rate for
the stepwise rate function.
|
double[] |
getRates()
These values are the successive stepwise rates that apply throughout
a time interval.
|
double[] |
getTimes()
The time epochs that
|
java.lang.String |
paramString() |
private double[] rates
private double[] times
private double[] cumIntRates
public CyclicalStepwiseIntegratedRate(double[] rates, double[] times)
rates
- Constant rates in time intervals; must be >= 0.0times
- Time epochs over which the corresponding rates will hold.
These values must be increasing, and times[0] = 0.0.public double getLambdaInv(double y)
y
- Time to be transformed by the inverse integrated rate.public double[] getRates()
public double[] getTimes()
public double[] getCumIntRates()
public java.lang.String paramString()