Class ProbabilityFilter
java.lang.Object
com.compomics.util.math.statistics.linear_regression.filters.ProbabilityFilter
public class ProbabilityFilter extends Object
Filter removing points with outlying slope.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors Constructor Description ProbabilityFilter()
Empty default constructor -
Method Summary
-
Constructor Details
-
ProbabilityFilter
public ProbabilityFilter()Empty default constructor
-
-
Method Details
-
getFilteredInput
public static ArrayList<ArrayList<Double>> getFilteredInput(ArrayList<Double> x, ArrayList<Double> y, double p)Returns a list containing first the filtered xs and then the filtered ys. Doublets are filtered to the given (non cumulative) probability p of belonging to the distribution of points based on the distance to the median regression.- Parameters:
x
- x seriesy
- y seriesp
- the (non cumulative) probability to use for filtering, e.g. 0.95 for 95%- Returns:
- a filtered list of x and y
-