sdvar: Generic Function for Variance and Standard Deviation...

sdvarR Documentation

Generic Function for Variance and Standard Deviation Computation

Description

Generic function to compute the variance and standard deviations. The default uses stats::var() and stats::sd().

Usage

sd(object, ...)

## Default S3 method:
sd(object, ...)

## S3 method for class 'dfts'
sd(object, type = "pointwise", ...)

var(object, ...)

## Default S3 method:
var(object, ...)

## S3 method for class 'dfts'
var(object, type = c("operator", "pointwise"), ...)

Arguments

object

Object for computation of standard deviation or variance of the given data set.

...

Additional parameters for the particular extensions.

type

String to specify if an operator ('op') or pointwise ('pw') calculation is desired on the functional data.

Value

Numeric(s) to explain the standard deviation / variance

See Also

stats::sd(), stats::var()

Examples

sd(1:10)
var(1:10)
sd(electricity, type = "pointwise")
var(electricity, type = "pointwise")
var(electricity, type = "operator")

fChange documentation built on June 21, 2025, 9:08 a.m.