org.encog.mathutil.dimension
public class DimensionConstraint extends Object
Constructor and Description |
---|
DimensionConstraint(int n,
int theLower,
int theUpper)
Construct the constraint.
|
Modifier and Type | Method and Description |
---|---|
MultiDimension |
getLower() |
int |
getLower(int d)
Get the lower bound for a specific dimension.
|
int |
getMiddle(int d) |
int |
getRange(int d)
Get the range (between upper and lower bound) for the specified
dimension.
|
MultiDimension |
getUpper() |
int |
getUpper(int d)
Get the upper bound for a specific dimension.
|
public DimensionConstraint(int n, int theLower, int theUpper)
n
- The number of dimensions.theLower
- theUpper
- public MultiDimension getLower()
public MultiDimension getUpper()
public int getLower(int d)
d
- The dimension.public int getUpper(int d)
d
- The dimension.public int getRange(int d)
d
- The dimension.public int getMiddle(int d)
Copyright © 2014. All Rights Reserved.