rthmean: Calculate the mean of a one dimensional vector

Description Usage Arguments Value Author(s) Examples

View source: R/rthmean.R

Description

Computes the mean like mean()

Usage

1

Arguments

x

The data array

nthreads

An optional argument for specifying the number of threads (in the case of OpenMP or TBB backends) that the routine should (at most) use. Does nothing with a CUDA backend. See nthreads.

Value

The mean of the array

Author(s)

Norm Matloff <matloff@cs.ucdavis.edu> and Drew Schmidt <schmidt@math.utk.edu>

Examples

1
2
3
4
5
6
## Not run: 
x <- c(1:10, 50)
x
rthmean(x)

## End(Not run)

matloff/Rth documentation built on May 21, 2019, 12:55 p.m.