<< nan_squareform Descriptive Statistics nan_std >>

NaN Toolbox >> NaN Toolbox > Descriptive Statistics > nan_statistic

nan_statistic

estimates various statistics at once.

Calling Sequence

R = nan_statistic(x,DIM)
calculates all statistic (see list of fun) in dimension DIM
y = nan_statistic(x,DIM,fun)
estimate of fun on dimension DIM

Parameters

y:

gives the statistic of fun

R:

is a struct with all statistics

DIM:

.dimension

1:

STATS of columns

2:

STATS of rows

N:

STATS of N-th dimension

default or []:

first DIMENSION, with more than 1 element

fun:

'mean' mean

Description

features: - can deal with NaN's (missing values) - dimension argument

Examples

x=rand(10,10);
R=nan_statistic(x);
x_mean=nan_statistic(x,[],"mean");
[x_mean,x_std]=nan_statistic(x,[],list("mean","std"));

See also

Bibliography

[1] http://www.itl.nist.gov/

[2] http://mathworld.wolfram.com/

Authors

<< nan_squareform Descriptive Statistics nan_std >>