Constant mean function.

mu_constant(thetaM, x)

Arguments

thetaM

Vector containing parameter values of mean function.

x

Values at which to calculate the mean function.

Value

Calculates the constant mean functions defined by thetaM at points x.

Examples


## Constant and uniform mean functions to test code
thetaM <- c(H=40)
mu_constant(thetaM, x=0:100)
#>   [1] 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40
#>  [26] 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40
#>  [51] 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40
#>  [76] 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40
#> [101] 40