| Package | Description |
|---|---|
| org.xmlcml.euclid | |
| org.xmlcml.stml |
| Modifier and Type | Method and Description |
|---|---|
RealArray |
RealArray.addScalar(double f)
add a scalar to all elements.
|
RealArray |
RealArray.applyFilter(RealArray filter)
apply filter.
|
RealArray |
RealArray.calculateDifferences()
calculate differences between elements i and i+1
|
RealArray |
RealSquareMatrix.calculateEigenvalues() |
static RealArray |
RealArray.createRealArray(int[] integers)
casts an integer array to RealArray
|
static RealArray |
RealArray.createRealArray(IntArray intArray)
casts an integer array to RealArray
|
static RealArray |
RealArray.createRealArray(List<String> stringList)
interprets list of Strings as numbers.
|
RealArray |
RealArray.createReorderedArray(IntSet intSet)
create new reordered array.
|
RealArray |
RealArray.createScaledArrayToRange(double x0,
double x1)
creates scaled array so it runs spans new Range.
|
RealArray |
RealArray.createScaledArrayToRange(double thisX0,
double thisX1,
double targetX0,
double targetX1)
creates scaled array so it runs spans new Range.
|
RealArray |
RealArray.cumulativeSum()
cumulative sum of array.
|
RealArray |
Point3Vector.deviationsFromPlane(Plane3 p)
get deviations of coordinates from plane
|
RealArray |
RealMatrix.euclideanColumnLengths()
get array of Euclidean column lengths
|
RealArray |
RealMatrix.euclideanRowLengths()
get array of Euclidean row lengths.
|
RealArray |
RealMatrix.extractColumnData(int col)
get column data from matrix.
|
RealArray |
Point3Vector.extractRealArray() |
RealArray |
RealMatrix.extractRowData(int row)
get row data from matrix.
|
RealArray |
RealArray.format(int places)
round to decimal places.
|
RealArray |
UnivariateBin.getArray() |
RealArray |
Univariate.getDeviateValues()
get deviate values.
|
static RealArray |
RealArray.getFilter(int halfWidth,
RealArray.Filter function)
creates a filter based on Gaussian and derivatives.
|
RealArray |
RealRangeArray.getGaps() |
RealArray |
Univariate.getMedianBinValuesSortedByFrequency()
this sorts the bins in order of frequency.
|
RealArray |
Univariate.getMedianXValues()
gets the median xvalues for the bins.
|
RealArray |
RealArray.getNormalDistribution(double sigma)
creates a normal distribution about a mean.
|
RealArray |
Bivariate.getNormalizedResiduals() |
RealArray |
Univariate.getNormalizedValues()
get normalized values.
|
RealArray |
RealArray.getReorderedArray(IntSet idx)
get reordered Array.
|
RealArray |
Bivariate.getResiduals() |
RealArray |
Transform2.getScales()
get scales (as a 2-element RealArray)
|
RealArray |
Transform3.getScales()
get scales.
|
RealArray |
RealArray.getSubArray(int start,
int end)
get array slice.
|
static RealArray |
RealArray.getSymmetricalArray(double mid,
int nsteps,
double halfrange)
gets range distributed about a midpoint.
|
RealArray |
Real2Array.getXArray()
extract X array.
|
RealArray |
Real2Vector.getXArray()
get the X coordinate array
|
RealArray |
Real2Vector.getXorY(Axis.Axis2 axis)
get a single coordinate array - for example all x-coordinates
|
RealArray |
Univariate.getXValues()
gets the xvalues for the bins.
|
RealArray |
Real2Vector.getXY()
get the coordinate coordinate array as doubles x,y,x,y,
|
RealArray |
Point3Vector.getXYZ()
get the coordinate coordinate array as doubles x,y,z,x,y,z,
|
RealArray |
Point3Vector.getXYZ(Axis.Axis3 axis)
get a single coordinate array for example all x-coordinates
|
RealArray |
Real2Array.getYArray()
extract Y array.
|
RealArray |
Real2Vector.getYArray()
get the Y coordinate array
|
RealArray |
RealSquareMatrix.lowerTriangle()
copy lower triangle into linear array; order: 0,0; 1,0; 1,1; 2,0
|
RealArray |
RealMatrix.multiply(RealArray f)
matrix multiplication of a COLUMN vector.
|
RealArray |
RealArray.multiplyBy(double f)
array multiplication by a scalar.
|
RealArray |
RealArray.plus(double f)
add a scalar to each element.
|
RealArray |
RealArray.plus(RealArray f)
adds arrays.
|
RealArray |
RealArray.scaleAndInterpolate(int newNelem)
Deprecated.
|
RealArray |
RealArray.shiftOriginToRight(double delta)
assumes all elements are equally spaced with "x" separation of 1.0.
|
RealArray |
RealArray.shiftOriginToRightOld(double delta)
assumes all elements are equally spaced with "x" separation of 1.0.
|
RealArray |
RealArray.subtract(RealArray f)
subtracts arrays.
|
RealArray |
RealArray.trim(ArrayBase.Trim flag,
double limit)
trims array to lie within limit.
|
RealArray |
RealArray.unitVector()
get unit vector
|
| Modifier and Type | Method and Description |
|---|---|
void |
RealArray.addArray(RealArray f)
append elements.
|
void |
RealMatrix.appendColumnData(RealArray f)
append data to matrix columnwise.
|
void |
RealMatrix.appendRowData(RealArray f)
append data to matrix rowwise.
|
RealArray |
RealArray.applyFilter(RealArray filter)
apply filter.
|
static void |
RealArray.check(RealArray array,
int size)
checks RealArray is not null and is of given size.
|
void |
RealMatrix.columnwiseDivide(RealArray f)
divide each column of a matrix by a vector of scalars (that is mat[i][j] =
mat[i][j] / vect[i] - MODIFIES matrix
|
static Real2Array |
Real2Array.createFromPairs(RealArray ra)
make an Real2_Array from pairs of numbers x1,y1 ..
|
static RealSquareMatrix |
RealSquareMatrix.diagonal(RealArray f)
create diagonal matrix from real matrix.
|
int |
RealSquareMatrix.diagonaliseAndReturnRank(RealArray eigenvalues,
RealSquareMatrix eigenvectors,
EuclidRuntimeException illCond)
diagonalisation returns eigenvalues and vectors as MODIFIED arguments;
'this' is NOT affected USE JAMA INSTEAD Note that IllCondMatrixException
is RETURNED and not thrown
|
double |
RealArray.dotProduct(RealArray f)
dot product of two arrays.
|
boolean |
RealArray.equals(RealArray f,
double epsilon)
are two arrays equal.
|
static RealSquareMatrix |
RealSquareMatrix.fromLowerTriangle(RealArray f)
create square matrix from lower triangle values
upper triangle is filled with zeros
|
static RealSquareMatrix |
RealSquareMatrix.fromUpperTriangle(RealArray f)
create square matrix from lower triangle
lower triangle is filled with zeros
|
double |
RealArray.getRandomVariate(RealArray distribution,
RealArray cumulativeDistribution)
gets a variate from a distribution.
|
void |
Point3Vector.inertialAxes(RealArray eigval,
RealSquareMatrix eigvect,
EuclidRuntimeException illCond)
Deprecated.
(doesn't work)
|
void |
RealArray.insertArray(int elem,
RealArray f)
insert an array and expand.
|
void |
RealMatrix.insertColumnData(int after_col,
RealArray f)
add data as column or column block into matrix and expand.
|
void |
RealMatrix.insertRowData(int after_row,
RealArray f)
insert row of data into matrix and expand.
|
boolean |
RealArray.isEqualTo(RealArray f)
are two arrays equal.
|
double |
RealArray.lineSearch(double probe,
RealArray distribution)
binary search on monotonic increasing distribution.
|
RealArray |
RealMatrix.multiply(RealArray f)
matrix multiplication of a COLUMN vector.
|
static RealSquareMatrix |
RealSquareMatrix.outerProduct(RealArray f)
Creates square matrix from real matrix.
|
RealArray |
RealArray.plus(RealArray f)
adds arrays.
|
void |
RealArray.plusEquals(RealArray f)
adds arrays.
|
void |
RealMatrix.replaceColumnData(int column,
RealArray f)
replace data in a single column.
|
void |
RealMatrix.replaceRowData(int row,
RealArray f)
overwrite existing row of data.
|
void |
Univariate.setArray(RealArray realArray)
sets data copies realArray
|
RealArray |
RealArray.subtract(RealArray f)
subtracts arrays.
|
void |
RealArray.subtractEquals(RealArray f)
array subtraction.
|
double |
RealArray.sumProductOfAllElements(RealArray yarr)
sum all product of elements.
|
| Constructor and Description |
|---|
Point3Vector(RealArray m)
constructor from RealArray - by REFERENCE
|
Real2Array(RealArray x,
RealArray y)
make an Real2_Array from 2 RealVec's; takes a copy
|
Real2Vector(RealArray m)
constructor from RealArray - by REFERENCE
|
RealArray(RealArray m)
copy constructor.
|
RealArray(RealArray ref,
IntArray sub)
create mixed sliced array.
|
RealArray(RealArray m,
int low,
int high)
create from subarray of another Array.
|
Univariate(RealArray realArray)
creates from data array.
|
Vector3(RealArray f)
copy constructor from RealArray.
|
| Constructor and Description |
|---|
STMLArray(RealArray array)
formed from components.
|
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.