Virtual Method

NumCosmoGalaxyRedshiftFactorgen1

Declaration [src]

gboolean
gen1 (
  NcGalaxyRedshiftFactor* gsdr,
  NcmMSet* mset,
  NcGalaxyRedshiftFactorData* data,
  NcmRNG* rng
)

Description [src]

Attempts to generate a single redshift sample subject to the scheme’s selection/limits, storing the result in data. Used for fixed-total-count subsampling where proposals violating the constraints are discarded.

Parameters

mset

Type: NcmMSet

A NcmMSet supplying the scheme’s models.

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

Type: NcGalaxyRedshiftFactorData

A pre-initialized NcGalaxyRedshiftFactorData.

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

Type: NcmRNG

A NcmRNG.

The data is owned by the caller of the method.

Return value

Type: gboolean

TRUE if a valid redshift was generated; FALSE otherwise.