Struct light_curve_dmdt::DmDt

source ·
pub struct DmDt<T>where
    T: Float,
{ pub dt_grid: Grid<T>, pub dm_grid: Grid<T>, }
Expand description

dm–dt map plotter

Fields§

§dt_grid: Grid<T>§dm_grid: Grid<T>

Implementations§

Create new DmDt

Create new DmDt with logarithmic dt grid and linear dm grid

dt grid will have borders [10^min_lgdt, 10^max_lgdt), dm grid will have borders [-max_abs_dm, max_abs_dm)

N dt by N dm

Represents each pair of (t, m) points as a unity value in dm-dt map

t must be an ascending slice

Represents each pair of (t, m, err2) points as a Gaussian distribution in dm-dt map

t must be an ascending slice.

Each observation is assumed to happen at time moment t_i and have Gaussian distribution of its magnitude N(m_i, err2_i). Each pair of observations (t_1, m_1, err2_1), (t_2, m_2, err2_2) is represented by 1-D Gaussian in the dm-dt space having constant dt and dm ~ N(m2-m1, err2_1 + err2_2). This distribution is integrated over each cell using Erf struct implementing ErrorFunction.

Count dt in the each dt grid cell

Conditional probability p(m2-m1|t2-t1)

Technically it is optimized version of DmDt::gausses() normalized by DmDt::dt_points but with better performance. Mathematically it represents the distribution of conditional probability p(m2-m1|t2-t1), see Soraisam et al. 2020 for details.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
The error type produced by a failed conversion.
Convert the given value into an approximately equivalent representation.
The error type produced by a failed conversion.
Convert the subject into an approximately equivalent representation.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Approximate the subject with the default scheme.
Approximate the subject with a specific scheme.
Approximate the subject to a given type with the default scheme.
Approximate the subject to a given type with a specific scheme.
Convert the subject to a given type.
Attempt to convert the subject to a given type.
Attempt a value conversion of the subject to a given type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The error type produced by a failed conversion.
Convert the given value into the subject type.
The type returned in the event of a conversion error.
Performs the conversion.
The error type produced by a failed conversion.
Convert the subject into the destination type.
The type returned in the event of a conversion error.
Performs the conversion.
The error type produced by a failed conversion.
Convert the given value into an exactly equivalent representation.
The error type produced by a failed conversion.
Convert the subject into an exactly equivalent representation.