|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
Weighted centered-moment kernels for the field-statistics pipeline. More...
#include "statistics_moments.h"Go to the source code of this file.
Weighted centered-moment kernels for the field-statistics pipeline.
Full API contract is documented with the declarations in include/statistics_moments.h.
Definition in file statistics_moments.c.
| void PicurvMomentStateReset | ( | PicurvMomentState * | state | ) |
Implementation of PicurvMomentStateReset().
Resets a scalar moment accumulator to the empty state.
Definition at line 15 of file statistics_moments.c.
| void PicurvCoMomentStateReset | ( | PicurvCoMomentState * | state | ) |
Implementation of PicurvCoMomentStateReset().
Resets a co-moment accumulator to the empty state.
Definition at line 29 of file statistics_moments.c.
| PetscErrorCode PicurvMomentStateUpdate | ( | PicurvMomentState * | state, |
| PetscReal | value, | ||
| PetscReal | weight | ||
| ) |
Implementation of PicurvMomentStateUpdate().
Applies one weighted sample to a scalar moment accumulator.
Definition at line 44 of file statistics_moments.c.
| PetscErrorCode PicurvCoMomentStateUpdate | ( | PicurvCoMomentState * | state, |
| PetscReal | value_x, | ||
| PetscReal | value_y, | ||
| PetscReal | weight | ||
| ) |
Implementation of PicurvCoMomentStateUpdate().
Applies one weighted paired sample to a co-moment accumulator.
Definition at line 71 of file statistics_moments.c.
| PetscErrorCode PicurvMomentStateMerge | ( | PicurvMomentState * | result, |
| const PicurvMomentState * | a, | ||
| const PicurvMomentState * | b | ||
| ) |
Implementation of PicurvMomentStateMerge().
Merges two independently accumulated scalar states.
Definition at line 100 of file statistics_moments.c.
| PetscErrorCode PicurvCoMomentStateMerge | ( | PicurvCoMomentState * | result, |
| const PicurvCoMomentState * | a, | ||
| const PicurvCoMomentState * | b | ||
| ) |
Implementation of PicurvCoMomentStateMerge().
Merges two independently accumulated co-moment states.
Definition at line 129 of file statistics_moments.c.
| PetscReal PicurvMomentStateVariance | ( | const PicurvMomentState * | state | ) |
Implementation of PicurvMomentStateVariance().
Returns the weighted variance M2/W, or zero when no weight accumulated.
Definition at line 161 of file statistics_moments.c.
| PetscReal PicurvCoMomentStateCovariance | ( | const PicurvCoMomentState * | state | ) |
Implementation of PicurvCoMomentStateCovariance().
Returns the weighted covariance C/W, or zero when no weight accumulated.
Definition at line 171 of file statistics_moments.c.
| PetscReal PicurvMomentStateEffectiveCount | ( | const PicurvMomentState * | state | ) |
Implementation of PicurvMomentStateEffectiveCount().
Returns Kish effective sample size W^2/W2, or zero when no weight accumulated.
Definition at line 181 of file statistics_moments.c.