|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.setupgenerator.Space
public class Space
Represents a multidimensional value space.
| Field Summary | |
|---|---|
protected SpaceDimension[] |
m_Dimensions
the dimensions. |
| Constructor Summary | |
|---|---|
Space(SpaceDimension[] dimensions)
Initializes the space. |
|
| Method Summary | |
|---|---|
int |
dimensions()
Returns the number of dimensions of this space. |
SpaceDimension |
getDimension(int dimension)
Returns the specified dimension. |
Point<Integer> |
getLocations(Point<Object> values)
Returns the locations for the given values in the various dimensions. |
int |
getType(int dimension)
Returns the type of the dimension. |
Point<Object> |
getValues(Point<Integer> locations)
Returns the double values (or list values) for the given position. |
protected boolean |
inc(Integer[] locations,
int[] max)
Increments the location array by 1. |
boolean |
isOnBorder(Point<?> points)
checks whether the given locations/values are on the border of the space. |
protected Vector<Point<Integer>> |
listPoints()
returns a Vector with all points in the space. |
Enumeration<Point<Integer>> |
points()
returns an Enumeration over all points. |
int |
size()
Returns the size of the space. |
Space |
subspace(Point<Integer> center)
Returns a subspace around the given point, with just one more neighbor left and right on each dimension. |
String |
toString()
Returns a string representation of the space. |
Enumeration<Point<Object>> |
values()
returns an Enumeration over all values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SpaceDimension[] m_Dimensions
| Constructor Detail |
|---|
public Space(SpaceDimension[] dimensions)
dimensions - the dimensions of the space| Method Detail |
|---|
public int dimensions()
public SpaceDimension getDimension(int dimension)
dimension - the dimension index
public int getType(int dimension)
dimension - the dimension index
MultiSearch#TYPE_FUNCTION,
MultiSearch#TYPE_LISTpublic Point<Object> getValues(Point<Integer> locations)
locations - the location to get the double values for
public Point<Integer> getLocations(Point<Object> values)
values - the double values to get the locations for
public boolean isOnBorder(Point<?> points)
points - the locations/values to check
public Space subspace(Point<Integer> center)
center - the center of the new "universe" ;-)
protected boolean inc(Integer[] locations,
int[] max)
locations - the position in the spacemax - the maxima
protected Vector<Point<Integer>> listPoints()
public int size()
public Enumeration<Point<Integer>> points()
public Enumeration<Point<Object>> values()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||