in reply to Re^5: Data range detection?
in thread Data range detection?
Sorry, but unless my eye's are deceiving me (quite possible), but you don't appear to be fitting the data at all:
21 my @x = 1..@$d; ### Takes the values 1..3 +0, 1..31, and 1..32 22 my @logx = map log, @x; ### is the logs of those +sequential ranges 23 my @logd = map log, @$d; ### the loglogs of those +sequential ranges. 24 printf "%10.2f %10.2f %10.2f\n", fit( \@x, $d), fit( \@x, \@logd) +, fit( \@logx, \@logd );
The actual data is never passed to the fit sub?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Data range detection?
by hdb (Monsignor) on Apr 13, 2015 at 19:22 UTC | |
by BrowserUk (Patriarch) on Apr 13, 2015 at 19:39 UTC | |
by hdb (Monsignor) on Apr 13, 2015 at 19:47 UTC |