Package org.apache.sis.math
Class Plane.Fit
java.lang.Object
org.apache.sis.math.Plane.Fit
- Enclosing class:
Plane
Computes the plane coefficients. This class needs to iterate over the points two times:
one for computing the coefficients, and one for the computing the Pearson coefficient.
The second pass can also opportunistically checks if some small coefficients can be replaced by zero.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final DoubleDouble
private final DoubleDouble
private final DoubleDouble
private final DoubleDouble
private final DoubleDouble
private final DoubleDouble
private final DoubleDouble
private final DoubleDouble
(package private) DoubleDouble
Solution of the plane equation.(package private) DoubleDouble
Solution of the plane equation.private final DoubleDouble
private final DoubleDouble
private final DoubleDouble
(package private) DoubleDouble
Solution of the plane equation.private final DoubleDouble
private final DoubleDouble
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) double
correlation
(int nx, int length, Vector vz, Iterator<? extends org.opengis.geometry.DirectPosition> points) Computes an estimation of the Pearson correlation coefficient.private void
resolve()
-
Field Details
-
sum_x
-
sum_y
-
sum_z
-
sum_xx
-
sum_yy
-
sum_xy
-
sum_zx
-
sum_zy
-
xx
-
yy
-
xy
-
zx
-
zy
-
n
private final int n -
sx
DoubleDouble sxSolution of the plane equation. -
sy
DoubleDouble sySolution of the plane equation. -
z0
DoubleDouble z0Solution of the plane equation.
-
-
Constructor Details
-
Fit
Fit(Iterable<? extends org.opengis.geometry.DirectPosition> points) Computes the values of allsum_*
fields from randomly distributed points. Value of all other fields are undetermined.. -
Fit
Fit(int nx, int ny, Vector vz) Computes the values of allsum_*
fields from the z values on a regular grid. Value of all other fields are undetermined..
-
-
Method Details
-
resolve
private void resolve() -
correlation
double correlation(int nx, int length, Vector vz, Iterator<? extends org.opengis.geometry.DirectPosition> points) Computes an estimation of the Pearson correlation coefficient. We do not use double-double arithmetic here since the Pearson coefficient is for information purpose (quality estimation).Only one of (
nx
,length
,z
) tuple orpoints
argument should be non-null.
-