smile.plot
Class Base
- java.lang.Object
-
- smile.plot.Base
-
public class Base extends java.lang.ObjectThe coordinate base of PlotCanvas. This support both 2D and 3D device-independent logical space where graphics primitives are specified.The user need supply the lower and upper bounds for each axis. These bounds usually are extended (a little) internally for better view purpose.
-
-
Constructor Summary
Constructors Constructor and Description Base(double[] lowerBound, double[] upperBound)Constructor.Base(double[] lowerBound, double[] upperBound, boolean extendBound)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidextendBound(double[] lowerBound, double[] upperBound)Extend lower and upper bounds.voidextendBound(int i)Round the bounds for axis i.voidextendLowerBound(double[] bound)Extend lower bounds.voidextendUpperBound(double[] bound)Extend upper bounds.double[][]getCoordinateSpace()Returns the coordinates.intgetDimension()Returns the dimensionality of coordinates.double[]getLowerBounds()Returns the lower bounds.int[]getPrecisionDigits()Returns the precision unit digits of axes.double[]getPrecisionUnit()Returns the precision units of axes.double[]getUpperBounds()Returns the upper bounds.voidreset()Reset base coordinates.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Base
public Base(double[] lowerBound, double[] upperBound)Constructor.
-
Base
public Base(double[] lowerBound, double[] upperBound, boolean extendBound)Constructor.
-
-
Method Detail
-
reset
public void reset()
Reset base coordinates. Round/extend lower and upper bounds if necessary.
-
getDimension
public int getDimension()
Returns the dimensionality of coordinates.
-
extendBound
public void extendBound(int i)
Round the bounds for axis i.
-
getCoordinateSpace
public double[][] getCoordinateSpace()
Returns the coordinates.
-
getLowerBounds
public double[] getLowerBounds()
Returns the lower bounds.
-
getUpperBounds
public double[] getUpperBounds()
Returns the upper bounds.
-
getPrecisionUnit
public double[] getPrecisionUnit()
Returns the precision units of axes.
-
getPrecisionDigits
public int[] getPrecisionDigits()
Returns the precision unit digits of axes.
-
extendLowerBound
public void extendLowerBound(double[] bound)
Extend lower bounds.
-
extendUpperBound
public void extendUpperBound(double[] bound)
Extend upper bounds.
-
extendBound
public void extendBound(double[] lowerBound, double[] upperBound)Extend lower and upper bounds.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG