コード例 #1
0
        public IObservable <IO <IEnumerable <KeyValuePair <DateTime, Tuple <double, double>[]> > > > GetOptimisedSolutions(IEnumerable <KeyValuePair <DateTime, double> > e, int count, Type kernel = null)
        {
            kernel = kernel ?? GaussianProcess.KernelHelper.LoadKernels().Last();

            Action <IO <IEnumerable <KeyValuePair <DateTime, Tuple <double, double>[]> > > > action = (a) => Subject2.OnNext(a);
            var x = Task.Run(() => TPL.GetOptimisedOutputKernel(kernel, e, action, count));

            x.ContinueWith((a) => Subject2.OnCompleted());

            return(Subject2);
        }
コード例 #2
0
 GetOptimised(IEnumerable <KeyValuePair <DateTime, double> > e, Action <IO <IEnumerable <KeyValuePair <DateTime, Tuple <double, double>[]> > > > action, Type kernel = null)
 {
     kernel = kernel ?? GaussianProcess.KernelHelper.LoadKernels().Last();
     return(Task.Run(() =>
                     TPL.GetOptimisedOutputKernel(kernel, e, action, 100)));
 }