Hi Diego,
the doc ( env_stats) states:
The spectral exponent \eqn{\theta} is then estimated as the negative slope of the linear regression of the natural log of spectral density as a function of the natural log of frequency.
And the corresponding code is:
|
list(slope = as.numeric(abs(coef(model)[2])), |
Shouldn't it be
list(slope = as.numeric(-1 * coef(model)[2]),
instead?
What reason is there to not just take the slope as it is in the first place? Did you intend for color to have meaning "the higher, the redder"? Or did I get something wrong?
Hi Diego,
the doc (
env_stats) states:And the corresponding code is:
envPred/R/helpers.R
Line 67 in cec9644
Shouldn't it be
instead?
What reason is there to not just take the slope as it is in the first place? Did you intend for color to have meaning "the higher, the redder"? Or did I get something wrong?