Package org.drip.spaces.metric
Class R1Ball
java.lang.Object
org.drip.spaces.tensor.R1ContinuousVector
org.drip.spaces.metric.R1Field
org.drip.spaces.metric.R1Ball
- All Implemented Interfaces:
GeneralizedMetricVectorSpace,R1Normed,GeneralizedVector,R1GeneralizedVector
public class R1Ball extends R1Field
R1Ball extends the Continuous R1 Space by enforcing the Closed Bounded Metric. The
Reference we've used is:
- Carl, B., and I. Stephani (1990): Entropy, Compactness, and the Approximation of Operators Cambridge University Press Cambridge UK
- Construct a R1Ball Instance of Unit Radius
- R1Ball Constructor
- Retrieve the Radius Norm
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
Fields inherited from interface org.drip.spaces.metric.GeneralizedMetricVectorSpace
EUCLIDEAN_NORM, L2_NORM, LINFINITITY_NORM -
Constructor Summary
Constructors Constructor Description R1Ball(double leftEdge, double rightEdge, R1Continuous r1Univariate, int pNorm, double normRadius)R1Ball Constructor -
Method Summary
Modifier and Type Method Description static R1BallClosedUnit(double dblLeftEdge, double dblRightEdge, R1Continuous distR1, int iPNorm)Construct a R1Ball Instance of Unit RadiusdoublenormRadius()Retrieve the Radius NormbooleanvalidateInstance(double instance)Validate the Input Instance ArrayMethods inherited from class org.drip.spaces.metric.R1Field
borelMeasureSpaceExpectation, borelSigmaMeasure, pNorm, populationMetricNorm, populationMode, sampleMetricNorm, Standard, SupremumMethods inherited from class org.drip.spaces.tensor.R1ContinuousVector
cardinality, hyperVolume, isPredictorBounded, leftEdge, match, rightEdge, Standard, subsetMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drip.spaces.tensor.GeneralizedVector
cardinality, hyperVolume, isPredictorBounded, leftEdge, match, rightEdge, subset
-
Constructor Details
-
R1Ball
public R1Ball(double leftEdge, double rightEdge, R1Continuous r1Univariate, int pNorm, double normRadius) throws java.lang.ExceptionR1Ball Constructor- Parameters:
leftEdge- The Left EdgerightEdge- The Right Edger1Univariate- The R1 Borel Sigma MeasurepNorm- The p-norm of the SpacenormRadius- Radius Norm of the Unit Ball- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
ClosedUnit
public static final R1Ball ClosedUnit(double dblLeftEdge, double dblRightEdge, R1Continuous distR1, int iPNorm)Construct a R1Ball Instance of Unit Radius- Parameters:
dblLeftEdge- The Left EdgedblRightEdge- The Right EdgedistR1- The R1 Borel Sigma MeasureiPNorm- The p-norm of the Space- Returns:
- R1Ball Instance of Unit Radius
-
normRadius
public double normRadius()Retrieve the Radius Norm- Returns:
- The Radius Norm
-
validateInstance
public boolean validateInstance(double instance)Description copied from class:R1ContinuousVectorValidate the Input Instance Array- Specified by:
validateInstancein interfaceR1GeneralizedVector- Overrides:
validateInstancein classR1ContinuousVector- Parameters:
instance- The Input Instance Array- Returns:
- TRUE - Instance is a Valid Entry in the Space
-