Win has asked for the wisdom of the Perl Monks concerning the following question:
my $lfit = Statistics::LineFit->new(); $lfit->setData($x_ref, $y_ref); printf "a=%.4f, b=%.4f, R2=%.4f\n", $lfit->coefficients(), $lfit->r +Squared(); return "a=%.4f, b=%.4f, R2=%.4f\n", $lfit->coefficients(), $lfit-> +rSquared(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Returning Statistics::LineFit variables from a sub
by grinder (Bishop) on Nov 22, 2007 at 17:33 UTC | |
| |
|
Re: Returning Statistics::LineFit variables from a sub
by andreas1234567 (Vicar) on Nov 22, 2007 at 17:44 UTC |