Skip to content

A Polynomial fitting which uses the least square method.And it is believable.

Notifications You must be signed in to change notification settings

JuYanYan/Polynomial-Fitting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Polynomial-Fitting

A Polynomial fitting which uses the least square method.And it is believable.

How to use

You can use it like:

bool PloyFitting(RealNumber *anOut, const RealNumber *x, const RealNumber *y, int xNum, int outNum)
{
    RealNumber  *a, *b;
    a = new RealNumber[outNum*xNum];
    b = new RealNumber[(outNum + 1)*(outNum + 1)];

    LoadData_Into_Matrix(a, x, outNum, xNum);

    calcNormalEqCof(a, b, y, outNum, xNum);

    DirectLU(b, anOut, outNum);

    delete[] a;
    delete[] b;
    return true;
}

Or.....You can do it that you want to.

About

A Polynomial fitting which uses the least square method.And it is believable.

Resources

Stars

Watchers

Forks

Packages

No packages published