Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot.Entities Namespace / Curve Class / LeastSquares Method
The list of 3D points
The curve degree
The number of control points in the new curve

In This Topic
    LeastSquares Method
    In This Topic
    Least squares curve approximation.
    Syntax
    'Declaration
     
    Public Shared Function LeastSquares( _
       ByVal Q As IList(Of Point3D), _
       ByVal p As Integer, _
       ByVal n As Integer _
    ) As Curve
    public static Curve LeastSquares( 
       IList<Point3D> Q,
       int p,
       int n
    )

    Parameters

    Q
    The list of 3D points
    p
    The curve degree
    n
    The number of control points in the new curve

    Return Value

    The approximated curve if the operation is successful, null/Nothing otherwise.
    Remarks
    deg must be smaller than Q.Count
    See Also