Beispiel #1
0
 public ChunkWhileDebugTypeProxy(Aggregation <K> .ChunkWhile obj)
 {
     this._obj = obj;
 }
Beispiel #2
0
        public static Series <a, b> ResampleEquivalence <K, V, a, b>(this Series <K, V> series, Func <K, a> keyProj, Func <Series <K, V>, b> aggregate)
        {
            FSharpFunc <K, a>             fsharpFunc = (FSharpFunc <K, a>) new SeriesExtensions.ResampleEquivalence <K, a>(keyProj);
            FSharpFunc <Series <K, V>, b> f          = (FSharpFunc <Series <K, V>, b>) new SeriesExtensions.ResampleEquivalence <K, V, b>(aggregate);
            Series <K, V> series1 = series;

            return(SeriesModule.MapValues <Series <K, V>, b, a>(f, SeriesModule.MapKeys <K, a, Series <K, V> >(fsharpFunc, series1.Aggregate <K, Series <K, V> >(Aggregation <K> .NewChunkWhile((FSharpFunc <K, FSharpFunc <K, bool> >) new SeriesExtensions.ResampleEquivalence <K, a>(fsharpFunc)), new Func <DataSegment <Series <K, V> >, K>(new SeriesExtensions.ResampleEquivalence0 <K, V>().Invoke), new Func <DataSegment <Series <K, V> >, OptionalValue <Series <K, V> > >(new SeriesExtensions.ResampleEquivalence1 <K, V>((FSharpFunc <Series <K, V>, Series <K, V> >) new SeriesExtensions.ResampleEquivalence <K, V>()).Invoke)))));
        }
Beispiel #3
0
 public WindowWhileDebugTypeProxy(Aggregation <K> .WindowWhile obj)
 {
     this._obj = obj;
 }
Beispiel #4
0
 public static Series <K2, U> ChunkInto <K1, V, K2, U>(this Series <K1, V> series, int size, Func <Series <K1, V>, KeyValuePair <K2, U> > selector)
 {
     return(series.Aggregate <K2, U>(Aggregation <K1> .NewChunkSize(size, Boundary.Skip), new Func <DataSegment <Series <K1, V> >, KeyValuePair <K2, OptionalValue <U> > >(new SeriesExtensions.ChunkInto <K1, V, K2, U>(selector).Invoke)));
 }