Class Plane.Fit

java.lang.Object
org.apache.sis.math.Plane.Fit
Enclosing class:
Plane

private static final class Plane.Fit extends Object
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 Details

  • Constructor Details

    • Fit

      Fit(Iterable<? extends org.opengis.geometry.DirectPosition> points)
      Computes the values of all sum_* fields from randomly distributed points. Value of all other fields are undetermined..
    • Fit

      Fit(int nx, int ny, Vector vz)
      Computes the values of all sum_* fields from the z values on a regular grid. Value of all other fields are undetermined..
  • Method Details

    • resolve

      private void resolve()
      Computes the sx, sy and Plane.z0() values using the sums computed by the constructor.
    • 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 or points argument should be non-null.