Functions
contrib/mul/pdf1d/pdf1d_calc_mean_var.cxx File Reference

Calculate mean and variance of 1D data. More...

#include "pdf1d_calc_mean_var.h"

Go to the source code of this file.

Functions

void pdf1d_calc_mean_var (double &mean, double &var, const vnl_vector< double > &d)
 Compute mean and variance of data.
void pdf1d_calc_mean_var (double &mean, double &var, const double *d, int n)
 Compute mean and variance of data.

Detailed Description

Calculate mean and variance of 1D data.

Author:
Tim Cootes

Definition in file pdf1d_calc_mean_var.cxx.


Function Documentation

void pdf1d_calc_mean_var ( double &  mean,
double &  var,
const vnl_vector< double > &  d 
)

Compute mean and variance of data.

Definition at line 8 of file pdf1d_calc_mean_var.cxx.

void pdf1d_calc_mean_var ( double &  mean,
double &  var,
const double *  d,
int  n 
)

Compute mean and variance of data.

Definition at line 13 of file pdf1d_calc_mean_var.cxx.