/// Calculates the mean of an array
///
/// Calculates and returns the mean of the array `x` as a f64
Calculates the mean of an array
Calculates and returns the mean of the array `x` as a f64
Calculates the mean of an array Calculates and returns the mean of the array ` x ` as a f64
fn find_mean(x: &[f64]) -> f64{
	let mut mean: f64 = 0.;
	for num in x.iter(){ mean += num; }
	return mean/(x.len() as f64);
}
fn find_mean ( x : & [ f64 ] ) -> f64 { let mut mean : f64 = 0. ; for num in x . iter ( ) { mean += num ; } return mean / ( x . len ( ) as f64 ) ; }
Calculates the mean of an array
Calculates and returns the mean of the array `x` as a f64
Calculates the mean of an array Calculates and returns the mean of the array ` x ` as a f64
x
&[f64]