Skip to content

Noise slope as abs instead of *-1 (?) #2

@black-snow

Description

@black-snow

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions