org.encog.mathutil.dimension
Class DimensionConstraint
- java.lang.Object
-
- org.encog.mathutil.dimension.DimensionConstraint
-
public class DimensionConstraint extends java.lang.ObjectSpecifies a constraint for dimensions, using a lower and upper bound.
-
-
Constructor Summary
Constructors Constructor and Description DimensionConstraint(int n, int theLower, int theUpper)Construct the constraint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description MultiDimensiongetLower()intgetLower(int d)Get the lower bound for a specific dimension.intgetMiddle(int d)intgetRange(int d)Get the range (between upper and lower bound) for the specified dimension.MultiDimensiongetUpper()intgetUpper(int d)Get the upper bound for a specific dimension.
-
-
-
Constructor Detail
-
DimensionConstraint
public DimensionConstraint(int n, int theLower, int theUpper)Construct the constraint.- Parameters:
n- The number of dimensions.theLower- The lower bound for each dimension.theUpper- The upper bound for each dimension.
-
-
Method Detail
-
getLower
public MultiDimension getLower()
- Returns:
- The lower bound for each dimension.
-
getUpper
public MultiDimension getUpper()
- Returns:
- The upper bound for each dimension.
-
getLower
public int getLower(int d)
Get the lower bound for a specific dimension.- Parameters:
d- The dimension.- Returns:
- The lower bound for the specified dimension.
-
getUpper
public int getUpper(int d)
Get the upper bound for a specific dimension.- Parameters:
d- The dimension.- Returns:
- The upper bound for the specified dimension.
-
getRange
public int getRange(int d)
Get the range (between upper and lower bound) for the specified dimension.- Parameters:
d- The dimension.- Returns:
- The range for the specified dimension.
-
getMiddle
public int getMiddle(int d)
-
-
DMelt 3.0 © DataMelt by jWork.ORG