Class SafeFunction
java.lang.Object
solvers.queueingnet.montecarloLogistic.numericalIntegration.SafeFunction
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
LogisticFunctionBase, LogisticFunctionMS
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcheckInDomain(double[] point) Function that checks point in within the domain of the functionprotected voidcheckPoint(double[] point) Checks that the provided point has length equal the function domain dimensionalityevaluate(double[] point) Implements the Function evaluate interface with a safe oneprotected abstract BigDecimalsafeEvaluate(double[] point) The evaluation of the function, given that the point is within the domain
-
Field Details
-
ndim
protected final int ndim
-
-
Constructor Details
-
SafeFunction
public SafeFunction(int ndim) Initialized the SafeFunction object- Parameters:
ndim- dimensionality of the function
-
-
Method Details
-
checkPoint
Checks that the provided point has length equal the function domain dimensionality- Parameters:
point- Point to be checked- Throws:
InternalErrorException- When point is invalid
-
checkInDomain
Function that checks point in within the domain of the function- Parameters:
point- Point to be checked- Throws:
InternalErrorException- When point is invalid
-
evaluate
Implements the Function evaluate interface with a safe one- Specified by:
evaluatein interfaceFunction- Parameters:
point- Array representing point to be evaluated- Returns:
- Function value at point
- Throws:
InternalErrorException- When point is not in function domain
-
safeEvaluate
The evaluation of the function, given that the point is within the domain- Parameters:
point- Array representing point to be evaluated- Returns:
- Function value at point
- Throws:
InternalErrorException
-