filtered_mean: Calculate filtered mean, stdev, and CV

View source: R/math_funcs.R

filtered_meanR Documentation

Calculate filtered mean, stdev, and CV

Description

Given a numeric vector, calculate the filtered mean, filtered standard deviation, and coefficient of variation (filtered standard deviation over filtered mean). NA values are removed before performing the calculations.

Usage

filtered_mean(var)

Arguments

var

Numeric vector or matrix

Value

Dataframe containing the filtered mean, filtered standard deviation, and coefficient of variation

References

Bailey, Sean & Werdell, Jeremy. (2006). A multi-sensor approach for the on-orbit validation of ocean color satellite data products. Remote Sensing of Environment. 102. 12-23. 10.1016/j.rse.2006.01.015.

Examples

filtered_mean(rnorm(50))
filtered_mean(matrix(rnorm(60),nrow=12,ncol=5))

BIO-RSG/oceancolouR documentation built on April 20, 2024, 6:40 a.m.