Class Quadric

  • All Implemented Interfaces:
    Function<Collection<Vector3d>,​Matrix4d>

    public class Quadric
    extends Object
    implements Function<Collection<Vector3d>,​Matrix4d>
    An op that fits a quadratic surface (quadric) into a set of points.

    The op first solves the quadric that best fits the point cloud by minimising the distance by least squares fitting. It's found by solving a polynomial - the general equation of a quadric. There are no guarantees about the type of the quadric solved, and it can be real or imaginary. The method is sensitive to outlier points.

    The op is based on the the implementations of Yury Petrov & KalebKE.

    Author:
    Richard Domander (Royal Veterinary College, London)
    Implementation Note:
    op names='stats.leastSquares'