public class TemporaryImpact extends TransactionFunctionPower
Constructor and Description |
---|
TemporaryImpact(AssetFlowSettings afp)
TemporaryImpact Constructor
|
Modifier and Type | Method and Description |
---|---|
AssetFlowSettings |
assetFlowParameters()
Retrieve the Asset Flow Parameters
|
double |
constant()
Retrieve the Constant Market Impact Parameter
|
double |
derivative(double dblNormalizedX,
int iOrder)
Calculate the derivative as a double
|
double |
evaluate(double dblNormalizedX)
Evaluate for the given variate
|
double |
exponent()
Retrieve the Power Law Exponent Market Impact Parameter
|
double |
modulate(double dblTradeInterval)
Modulate/Scale the Impact Output
|
double |
regularize(double dblTradeInterval)
Regularize the Input Function using the specified Trade Inputs
|
crossHoldingsDerivative, evaluate, leftHoldingsDerivative, rightHoldingsDerivative
differential, differential, integrate, maxima, maxima, minima, minima
public TemporaryImpact(AssetFlowSettings afp) throws java.lang.Exception
afp
- The Asset Flow Parametersjava.lang.Exception
- Thrown if the Inputs are Invalidpublic AssetFlowSettings assetFlowParameters()
public double regularize(double dblTradeInterval) throws java.lang.Exception
TransactionFunction
regularize
in class TransactionFunction
dblTradeInterval
- The Trade Intervaljava.lang.Exception
- Thrown if the Inputs are Invalidpublic double modulate(double dblTradeInterval) throws java.lang.Exception
TransactionFunction
modulate
in class TransactionFunction
dblTradeInterval
- The Trade Intervaljava.lang.Exception
- Thrown if the Inputs are Invalidpublic double constant()
TransactionFunctionPower
constant
in class TransactionFunctionPower
public double exponent()
TransactionFunctionPower
exponent
in class TransactionFunctionPower
public double evaluate(double dblNormalizedX) throws java.lang.Exception
R1ToR1
public double derivative(double dblNormalizedX, int iOrder) throws java.lang.Exception
R1ToR1
derivative
in class R1ToR1
dblNormalizedX
- Variate at which the derivative is to be calculatediOrder
- Order of the derivative to be computedjava.lang.Exception
- Thrown if Inputs are Invalid