Learn R Programming

eventstream (version 0.1.1)

stats_3d: Computes mean and standard deviation

Description

This function is used for 3D event extraction and feature computation.

Usage

stats_3d(dat)

Arguments

dat

The data array

Value

A list with following components

mean.dat

The mean of the data array

sd.dat

The standard deviation of the data array

Examples

Run this code
# NOT RUN {
set.seed(1)
arr <- array(rnorm(12000),dim=c(40,25,30))
arr[25:33,12:20, 20:23] <- 10
mean_sd <- stats_3d(arr[1:20,1:6,1:8])
mean_sd
# }

Run the code above in your browser using DataLab