PartMC  2.6.1
Data Types | Modules | Functions/Subroutines
stats.F90 File Reference

The pmc_stats module. More...

Go to the source code of this file.

Data Types

type  pmc_stats::stats_t
 Structure for online computation of mean and variance. More...
 
type  pmc_stats::stats_1d_t
 Structure for online computation of 1D arrays of mean and variance. More...
 
type  pmc_stats::stats_2d_t
 Structure for online computation of 2D arrays of mean and variance. More...
 

Modules

module  pmc_stats
 The stats_t type and associated subroutines.
 

Functions/Subroutines

subroutine pmc_stats::stats_clear (stats)
 Clear data statistics collected so far. More...
 
subroutine pmc_stats::stats_1d_clear (stats)
 Clear data statistics collected so far. More...
 
subroutine pmc_stats::stats_2d_clear (stats)
 Clear data statistics collected so far. More...
 
subroutine pmc_stats::stats_add (stats, data)
 Add a new data value to a stats_t structure. More...
 
subroutine pmc_stats::stats_1d_add (stats, data)
 Add all new data values to a stats_1d_t structure. More...
 
subroutine pmc_stats::stats_1d_add_entry (stats, data, i)
 Add a new single data value to a stats_1d_t structure. More...
 
subroutine pmc_stats::stats_2d_add (stats, data)
 Add all new data values to a stats_2d_t structure. More...
 
subroutine pmc_stats::stats_2d_add_row (stats, data, i)
 Add a row of new data values to a stats_2d_t structure. More...
 
subroutine pmc_stats::stats_2d_add_col (stats, data, j)
 Add a column of new data values to a stats_2d_t structure. More...
 
subroutine pmc_stats::stats_2d_add_entry (stats, data, i, j)
 Add a single new data value to a stats_2d_t structure. More...
 
real(kind=dp) function pmc_stats::stats_conf_95_offset (stats)
 Compute the 95% confidence interval offset from the mean. More...
 
real(kind=dp) function, dimension(size(stats%n)) pmc_stats::stats_1d_conf_95_offset (stats)
 Compute the 95% confidence interval offset from the mean. More...
 
real(kind=dp) function, dimension(size(stats%n, 1), size(stats%n, 2)) pmc_stats::stats_2d_conf_95_offset (stats)
 Compute the 95% confidence interval offset from the mean. More...
 
subroutine pmc_stats::update_mean_var (mean, var, data, n)
 Compute a running average and variance. More...
 
real(kind=dp) function pmc_stats::student_t_95_coeff (n_sample)
 Return a fairly tight upper-bound on the Student's t coefficient for the 95% confidence interval. More...
 
real(kind=dp) function pmc_stats::conf_95_offset (var, n_sample)
 95% confidence interval offset from mean. More...
 
subroutine pmc_stats::stats_output_netcdf (stats, ncid, name, unit)
 Write statistics (mean and 95% conf. int.) to a NetCDF file. More...
 
subroutine pmc_stats::stats_1d_output_netcdf (stats, ncid, name, dim_name, unit)
 Write statistics (mean and 95% conf. int.) to a NetCDF file. More...
 
subroutine pmc_stats::stats_2d_output_netcdf (stats, ncid, name, dim_name_1, dim_name_2, unit)
 Write statistics (mean and 95% conf. int.) to a NetCDF file. More...
 
subroutine pmc_stats::stats_1d_output_text (stats, filename, dim)
 Write statistics (mean and 95% conf. int.) to a text file. More...
 

Detailed Description

The pmc_stats module.

Definition in file stats.F90.