Skip to content

Variance arg in atlantis_tracer_survey_select #8

@pfrater

Description

@pfrater

Just out of curiousity...when random noise is added to the survey data in the function atlantis_tracer_survey_select the sigma argument is squared to produce the err_variance object within the function on line132 (which is then used as the sd argument of rnorm). I'm just wondering why this term is squared as rnorm takes standard deviation (which is the square root of variance) as the argument for how much variation to introduce in the normal distribution.

Shouldn't the sigma argument either be input directly into rnorm? Or alternatively the user could be asked for variance and then take the sqrt of that and put into rnorm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions