alap
alap

Reputation: 647

polyfit function conversion from matlab to r

So matlab help has the following description :

[P, S, MU] = POLYFIT[X,Y,N]

I know what the input variables mean, but i cant calculate the MU "manually". The MU i need for calculating the area of a peak.

I need to convert source code from MATLAB to R, but don't know what's the best to do.

Upvotes: 0

Views: 970

Answers (1)

Bitwise
Bitwise

Reputation: 7807

MU is given as [mu1,mu2] and is used for centering and scaling the data so that the problem will have good numerical properties. mu1 is the mean of x and mu2 is the standard deviation of x.

See info here.

Upvotes: 2

Related Questions