private void Run() { List <(double, double)> spoints = Measurements.Select(_ => ((double)(_.Key - odt).TotalSeconds, _.Value)).ToList(); var outgps = gpmm.AddTrainingPoints(spoints.Select(_ => _.Item1).ToArray(), spoints.Select(_ => _.Item2).ToArray()); var xx = outgps.Select(_ => _.mu .Zip(_.sd95, (a, b) => new { Mu = a, Sigma = b }) .Zip(_.X, (c, d) => new Estimate(odt + TimeSpan.FromSeconds(d), c.Mu, c.Sigma))); Estimates.Clear(); foreach (var __ in xx) { foreach (var ___ in __) { Estimates.Add(___); } } }
public void Sample() { Estimates.Clear(); gpw.Sample().ForEach(_ => Estimates.Add(_)); }