Show / Hide Table of Contents

Class SampleSetExtensions

Inheritance
System.Object
SampleSetExtensions
Namespace: MESL.SqlRace.Domain.Functions.Processors.BestFit
Assembly: MESL.SqlRace.Domain.dll
Syntax
public static class SampleSetExtensions : Object

Methods

Crop(IEnumerable<Point>, Double, Double, Double, Double)

Declaration
public static IEnumerable<Point> Crop(this IEnumerable<Point> source, double xLowerBound, double xUpperBound, double yLowerBound, double yUpperBound)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Point> source
System.Double xLowerBound
System.Double xUpperBound
System.Double yLowerBound
System.Double yUpperBound
Returns
Type Description
System.Collections.Generic.IEnumerable<Point>

GroupAndReduce(IEnumerable<Point>, Func<IEnumerable<Double>, Double>)

Groups a sample by X and for each group returns a value based on the reducer function (e.g. Min or Max)

Declaration
public static IEnumerable<Point> GroupAndReduce(this IEnumerable<Point> sample, Func<IEnumerable<double>, double> reducer)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Point> sample
System.Func<System.Collections.Generic.IEnumerable<System.Double>, System.Double> reducer
Returns
Type Description
System.Collections.Generic.IEnumerable<Point>

RemoveOutliers(IEnumerable<Point>, Double)

Declaration
public static IEnumerable<Point> RemoveOutliers(this IEnumerable<Point> source, double confidence)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Point> source
System.Double confidence
Returns
Type Description
System.Collections.Generic.IEnumerable<Point>
Exceptions
Type Condition
System.NotImplementedException

SliceX(IEnumerable<Point>, Double, Double)

Declaration
public static IEnumerable<Point> SliceX(this IEnumerable<Point> source, double lowerBound, double upperBound)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Point> source
System.Double lowerBound
System.Double upperBound
Returns
Type Description
System.Collections.Generic.IEnumerable<Point>

SliceY(IEnumerable<Point>, Double, Double)

Declaration
public static IEnumerable<Point> SliceY(this IEnumerable<Point> source, double lowerBound, double upperBound)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Point> source
System.Double lowerBound
System.Double upperBound
Returns
Type Description
System.Collections.Generic.IEnumerable<Point>
Back to top Generated by DocFX