Method

NumCosmoMathStatsVecappend_weight

Declaration [src]

void
ncm_stats_vec_append_weight (
  NcmStatsVec* svec,
  NcmVector* x,
  gdouble w,
  gboolean dup
)

Description [src]

Appends and updates the statistics using weight w for the vector x NcmVector of same size NcmStatsVec:length and with continuous allocation. i.e., NcmVector:stride == 1.

If svec was created with save_x TRUE, the paramenter dup determines if the vector x will be duplicated or if just a reference for x will be saved.

Parameters

x

Type: NcmVector

A NcmVector to be added.

The data is owned by the caller of the method.
w

Type: gdouble

The weight of x.

dup

Type: gboolean

A boolean.