edu.stanford.math.plex4.homology.barcodes
public class BarcodeUtility extends java.lang.Object
Constructor and Description |
---|
BarcodeUtility() |
Modifier and Type | Method and Description |
---|---|
static <G> java.util.List<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<Interval<java.lang.Double>,G>> |
filterIntervalPairsByMinimumLength(java.lang.Iterable<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<Interval<java.lang.Double>,G>> intervals,
double minimumLength)
Given a collection of intervals object pairs, this function returns those intervals with length greater than or equal to the minimum specified.
|
static java.util.List<Interval<java.lang.Double>> |
filterIntervalsByMinimumLength(java.lang.Iterable<Interval<java.lang.Double>> intervals,
double minimumLength)
Given a collection of intervals, this function returns those intervals with length greater than or equal to the minimum specified.
|
static <G> double[][] |
getEndpoints(AnnotatedBarcodeCollection<java.lang.Double,G> collection,
int dimension,
boolean skipInfiniteIntervals)
This function returns an array containing the set of endpoint of the
intervals.
|
static double[][] |
getEndpoints(java.util.List<Interval<java.lang.Double>> intervals,
int dimension,
boolean skipInfiniteIntervals)
This function returns an array containing the set of endpoint of the
intervals.
|
static double |
getLength(Interval<java.lang.Double> interval) |
static <G> java.util.List<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<Interval<java.lang.Double>,G>> |
getLongestAnnotatedBarcodes(java.util.List<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<Interval<java.lang.Double>,G>> intervals,
int k) |
static java.util.List<Interval<java.lang.Double>> |
getLongestBarcodes(java.util.List<Interval<java.lang.Double>> intervals,
int k) |
public static <G> double[][] getEndpoints(AnnotatedBarcodeCollection<java.lang.Double,G> collection, int dimension, boolean skipInfiniteIntervals)
G
- collection
- the barcode collectiondimension
- the dimension at which to get the endpointsskipInfiniteIntervals
- boolean flag indicating whether to skip infinite intervalspublic static double[][] getEndpoints(java.util.List<Interval<java.lang.Double>> intervals, int dimension, boolean skipInfiniteIntervals)
G
- intervals
- the list of intervalsdimension
- the dimension at which to get the endpointsskipInfiniteIntervals
- boolean flag indicating whether to skip infinite intervalspublic static java.util.List<Interval<java.lang.Double>> getLongestBarcodes(java.util.List<Interval<java.lang.Double>> intervals, int k)
public static <G> java.util.List<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<Interval<java.lang.Double>,G>> getLongestAnnotatedBarcodes(java.util.List<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<Interval<java.lang.Double>,G>> intervals, int k)
public static double getLength(Interval<java.lang.Double> interval)
public static java.util.List<Interval<java.lang.Double>> filterIntervalsByMinimumLength(java.lang.Iterable<Interval<java.lang.Double>> intervals, double minimumLength)
intervals
- the set of intervalsminimumLength
- the minimum lengthpublic static <G> java.util.List<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<Interval<java.lang.Double>,G>> filterIntervalPairsByMinimumLength(java.lang.Iterable<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<Interval<java.lang.Double>,G>> intervals, double minimumLength)
intervals
- the set of intervalsminimumLength
- the minimum length