OpenStructure
Loading...
Searching...
No Matches
Functions
ost.stutil Namespace Reference

Functions

 Mean (xs)
 
 Median (xs)
 
 StdDev (xs)
 
 Min (xs)
 
 Max (xs)
 
 Correl (xs, ys)
 
 Histogram (xs, bounds, num_bins)
 

Function Documentation

◆ Correl()

Correl (   xs,
  ys 
)
Calculates the correlation coefficient between xs and ys as

  sum[(xi-<x>)*(yi-<y>)]
r=----------------------
        sx*sy
        
where <x>, <y> are the mean of dataset xs and ys, and, sx and sy are the 
standard deviations.

Definition at line 41 of file stutil.py.

◆ Histogram()

Histogram (   xs,
  bounds,
  num_bins 
)

Definition at line 68 of file stutil.py.

◆ Max()

Max (   xs)

Definition at line 38 of file stutil.py.

◆ Mean()

Mean (   xs)
Calculate mean of dataset

Definition at line 3 of file stutil.py.

◆ Median()

Median (   xs)
Calculate median of dataset

Definition at line 11 of file stutil.py.

◆ Min()

Min (   xs)

Definition at line 35 of file stutil.py.

◆ StdDev()

StdDev (   xs)
Calculate standard-deviation of dataset

          | sum[xi-<x>]^2 |
sigma=sqrt|---------------|
          |       n       |

Definition at line 24 of file stutil.py.