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 Details

  • 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 series
      y - y series
      p - the (non cumulative) probability to use for filtering, e.g. 0.95 for 95%
      Returns:
      a filtered list of x and y