Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 public static unsafe VslSSTaskHandle <T> Create <T>(Dataset <T> samples)
     where T : unmanaged
 => VslSSTaskHandle <T> .Create(samples);
Exemplo n.º 6
0
 public static unsafe VslSSTaskHandle <T> Create <T>(Span <T> samples, int dim)
     where T : unmanaged
 => VslSSTaskHandle <T> .Create(samples, dim);
Exemplo n.º 7
0
 public static unsafe VslSSTaskHandle <T> Create <T>(Observations <T> samples)
     where T : unmanaged
 => VslSSTaskHandle <T> .Create(samples);