Method

NumCosmoMathStatsVecprepend_weight

Declaration [src]

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

Description [src]

Prepends and updates the statistics using the vector x and weight w. It assumes that NcmVector is 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 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.