NcmReparamLinear

NcmReparamLinear — Linear reparametrization object.

Functions

Properties

NcmMatrix * matrix Read / Write / Construct Only
NcmVector * vector Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── NcmReparam
        ╰── NcmReparamLinear

Description

Object implementing a linear reparametrization of the model's parameters. It uses as imput a matrix $M$ (“matrix”) and a vector $v$ (“vector”), such that the new parameters $\vec{w}$ are given by $$\vec{w} = M\cdot\vec{y} + \vec{v},$$ where $\vec{y}$ represents the original model's parameters.

Functions

ncm_reparam_linear_new ()

NcmReparamLinear *
ncm_reparam_linear_new (guint size,
                        NcmMatrix *T,
                        NcmVector *v);

Creates a new reparametrization using the parameters transformation matrix T and the shift vector v , i.e., the new parameters vector $\vec{p}_n$ is given by $\vec{p}_n = T\cdot{}\vec{p} + \vec{v}$, where $p$ are the old parameters vector.

Parameters

size

model's length.

 

T

a NcmMatrix

 

v

a NcmVector

 

Returns

a new NcmReparamLinear.

[transfer full]


ncm_reparam_linear_set_compat_type ()

void
ncm_reparam_linear_set_compat_type (NcmReparamLinear *lin,
                                    GType compat_type);

Sets the object's type compatible with this reparametrization.

Parameters

lin

a NcmReparamLinear

 

compat_type

a GType

 

Types and Values

NCM_TYPE_REPARAM_LINEAR

#define NCM_TYPE_REPARAM_LINEAR (ncm_reparam_linear_get_type ())

NcmReparamLinear

typedef struct _NcmReparamLinear NcmReparamLinear;

Property Details

The “matrix” property

  “matrix”                   NcmMatrix *

The matrix $M$.

Owner: NcmReparamLinear

Flags: Read / Write / Construct Only


The “vector” property

  “vector”                   NcmVector *

The vector $\vec{v}$.

Owner: NcmReparamLinear

Flags: Read / Write / Construct Only