static unsafe Observations <T> CalcVariance <T>(this Observations <T> samples, Observations <T> dst) where T : unmanaged { using var h2 = VslSSTaskHandle.Create(samples); h2.Set(VSL_SS_ED_2R_MOM, ref dst[0]); h2.Compute(Calcs.VSL_SS_2R_MOM, VSL_SS_METHOD_FAST); return(dst); }
static unsafe ref T CalcMean <T>(this Observations <T> samples, ref T dst) where T : unmanaged { using var h2 = VslSSTaskHandle.Create(samples); h2.Set(VSL_SS_ED_MEAN, ref dst); h2.Compute(Calcs.VSL_SS_MEAN, VSL_SS_METHOD_FAST); return(ref dst); }
static unsafe Dataset <T> CalcMean <T>(this Dataset <T> samples, Dataset <T> dst) where T : unmanaged { using var h2 = VslSSTaskHandle.Create(samples); h2.Set(VSL_SS_ED_MEAN, ref dst[0]); h2.Compute(Calcs.VSL_SS_MEAN, VSL_SS_METHOD_FAST); return(dst); }
static unsafe Observations <T> CalcExtrema <T>(this Observations <T> samples, Observations <T> dst) where T : unmanaged { using var h2 = VslSSTaskHandle.Create(samples); h2.Set(VSL_SS_ED_MIN, ref dst[0]); h2.Set(VSL_SS_ED_MAX, ref dst[1]); h2.Compute(Calcs.VSL_SS_MAX | Calcs.VSL_SS_MIN, VSL_SS_METHOD_FAST); return(dst); }
public static unsafe VslSSTaskHandle <T> Create <T>(Dataset <T> samples) where T : unmanaged => VslSSTaskHandle <T> .Create(samples);
public static unsafe VslSSTaskHandle <T> Create <T>(Span <T> samples, int dim) where T : unmanaged => VslSSTaskHandle <T> .Create(samples, dim);
public static unsafe VslSSTaskHandle <T> Create <T>(Observations <T> samples) where T : unmanaged => VslSSTaskHandle <T> .Create(samples);