public class FunctionSpaceDimension extends SpaceDimension
| Constructor and Description |
|---|
FunctionSpaceDimension(double min,
double max,
double step,
String label)
initializes the dimension (for numeric values).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Tests itself against the provided dimension object.
|
int |
getLocation(Object value)
returns the closest index for the given value in the dimension.
|
Object |
getValue(int x)
returns the value at the given point in the dimension.
|
FunctionSpaceDimension |
subdimension(int left,
int right)
returns a sub-dimension with the same type/step/list, but different borders.
|
String |
toString()
Returns a string representation of the dimension.
|
getLabel, getMax, getMin, getStep, isOnBorder, isOnBorder, widthpublic FunctionSpaceDimension(double min,
double max,
double step,
String label)
min - the minimum on the axismax - the maximum on the axisstep - the step size for the axislabel - the label for the axispublic boolean equals(Object o)
equals in class SpaceDimensiono - the dimension object to compare againstpublic Object getValue(int x)
getValue in class SpaceDimensionx - the x-th point on the axispublic int getLocation(Object value)
getLocation in class SpaceDimensionvalue - the value to get the index forpublic FunctionSpaceDimension subdimension(int left, int right)
subdimension in class SpaceDimensionleft - the left indexright - the right indexpublic String toString()
toString in class SpaceDimensionCopyright © 2021 University of Waikato, Hamilton, NZ. All Rights Reserved.