jhplot.math
Class Slicing
- java.lang.Object
-
- jhplot.math.Slicing
-
public class Slicing extends java.lang.ObjectBSD License
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringAUTO_BOUNDSstatic doubleepsilonstatic java.lang.StringUNIFORM_BOUNDS
-
Constructor Summary
Constructors Constructor and Description Slicing(double[][] m, double[][] bounds)Construct a Slice from a matrix and an orthogonal slicing.Slicing(double[][] m, double[][] centers, double[][] widths)Construct a Slice from a matrix and an orthogonal slicing.Slicing(double[][] m, int[][] n)Construct a Slice from a matrix and an orthogonal slicing.Slicing(double[][] m, int[] n, java.lang.String bounds)Construct a Slice from a matrix and an orthogonal slicing.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intfindSlice(double[] x)double[]getSlicesCardinals()double[][]getSlicesCenters()int[][]getSlicesIndexes()double[][]getSlicesWidths()double[][]getSlicingMatrix()static voidmain(java.lang.String[] args)voidtoCommandLine(java.lang.String title)
-
-
-
Field Detail
-
AUTO_BOUNDS
public static final java.lang.String AUTO_BOUNDS
- See Also:
- Constant Field Values
-
UNIFORM_BOUNDS
public static final java.lang.String UNIFORM_BOUNDS
- See Also:
- Constant Field Values
-
epsilon
public static double epsilon
-
-
Constructor Detail
-
Slicing
public Slicing(double[][] m, int[] n, java.lang.String bounds)Construct a Slice from a matrix and an orthogonal slicing.- Parameters:
m- Matrix to slice.n- Array of number of slices per dimension of the matrix.bounds- type of bounds setting : AUTO or UNIFORM.
-
Slicing
public Slicing(double[][] m, double[][] bounds)Construct a Slice from a matrix and an orthogonal slicing.- Parameters:
m- Matrix to slice.bounds- bounds of slices per dimension (in rows!).
-
Slicing
public Slicing(double[][] m, double[][] centers, double[][] widths)Construct a Slice from a matrix and an orthogonal slicing.- Parameters:
m- Matrix to slice.centers- centers of slices per dimension (in rows!).widths- widths of slices per dimension (in rows!).
-
Slicing
public Slicing(double[][] m, int[][] n)Construct a Slice from a matrix and an orthogonal slicing.- Parameters:
m- Matrix to slice.n- Array of slices.
-
-
Method Detail
-
getSlicingMatrix
public double[][] getSlicingMatrix()
-
getSlicesCardinals
public double[] getSlicesCardinals()
-
getSlicesWidths
public double[][] getSlicesWidths()
-
getSlicesCenters
public double[][] getSlicesCenters()
-
findSlice
public int findSlice(double[] x)
-
getSlicesIndexes
public int[][] getSlicesIndexes()
-
toCommandLine
public void toCommandLine(java.lang.String title)
-
main
public static void main(java.lang.String[] args)
-
-
DMelt 3.0 © DataMelt by jWork.ORG