|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ojalgo.random.process.DiffusionProcess
public class DiffusionProcess
Diffusion process defined by a stochastic differential equation dX = r X dt + s X dW
Constructor Summary | |
---|---|
DiffusionProcess(double aLocalDrift,
double aDiffusionFunction)
|
|
DiffusionProcess(double aReturn,
double aVariance,
double aHorizon)
|
Method Summary | |
---|---|
DiffusionProcess |
convert(double aConvertionFactor)
|
DiffusionProcess |
createNewWithChangedStepSize(double aConvertionFactor)
Deprecated. v30 Use convert(double) instead |
static DiffusionProcess |
estimate(SampleSet aSampleSet,
long aStepSize,
CalendarDateUnit aTimeUnit)
|
static DiffusionProcess |
estimate(TimeInMillisSeries<?> aSeries,
CalendarDateUnit aTimeUnit)
|
double |
getCurrentValue()
If the implementing class maintains state, the current value should be updated when calling the RandomProcess.step() method. |
double |
getDeviationValue(double aHorizon)
|
double |
getDiffusionFunction()
|
double |
getExpected(double aHorizon)
Expected relative change (+/- some percentage) |
double |
getExpectedValue(double aHorizon)
|
double |
getLocalDrift()
|
double |
getStandardDeviation(double aHorizon)
|
double |
getVariance(double aHorizon)
|
void |
setCurrentValue(double aCurrentValue)
|
void |
setDiffusionFunction(double aDiffusionFunction)
|
void |
setExpected(double aReturn,
double aHorizon)
|
void |
setLocalDrift(double aLocalDrift)
|
void |
setStandardDeviation(double aStandardDeviation,
double aHorizon)
Will update both the diffusion function and the local drift. |
void |
setVariance(double aVariance,
double aHorizon)
Will update both the diffusion function and the local drift. |
double |
step()
Default step size is 1.0. |
double |
step(double aStepSize)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiffusionProcess(double aLocalDrift, double aDiffusionFunction)
public DiffusionProcess(double aReturn, double aVariance, double aHorizon)
Method Detail |
---|
public static DiffusionProcess estimate(SampleSet aSampleSet, long aStepSize, CalendarDateUnit aTimeUnit)
aSampleSet
- Some sampled dataaStepSize
- The number of millis inbetween each sampleaTimeUnit
- You have to specify with what unit the process
will meassure time.public static DiffusionProcess estimate(TimeInMillisSeries<?> aSeries, CalendarDateUnit aTimeUnit)
aSeries
- A series of observations, each with a timestamp,
that should be evenly spaced.aTimeUnit
- You have to specify with what unit the process
will meassure time.public DiffusionProcess convert(double aConvertionFactor)
aConvertionFactor
- A step size change factor.@Deprecated public DiffusionProcess createNewWithChangedStepSize(double aConvertionFactor)
convert(double)
instead
public double getCurrentValue()
RandomProcess
RandomProcess.step()
method.
getCurrentValue
in interface RandomProcess
public double getDeviationValue(double aHorizon)
public double getDiffusionFunction()
public double getExpected(double aHorizon)
public double getExpectedValue(double aHorizon)
public double getLocalDrift()
public double getStandardDeviation(double aHorizon)
public double getVariance(double aHorizon)
public void setCurrentValue(double aCurrentValue)
public void setDiffusionFunction(double aDiffusionFunction)
public void setExpected(double aReturn, double aHorizon)
public void setLocalDrift(double aLocalDrift)
public void setStandardDeviation(double aStandardDeviation, double aHorizon)
getDiffusionFunction()
,
getLocalDrift()
public void setVariance(double aVariance, double aHorizon)
getDiffusionFunction()
,
getLocalDrift()
public double step()
RandomProcess
step
in interface RandomProcess
public double step(double aStepSize)
step
in interface RandomProcess
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |