Documentation of 'jhpro.tseries.Multiplet' Java class
Multiplet
jhpro.tseries

Class Multiplet

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Peak>, java.util.Collection<Peak>, java.util.List<Peak>, java.util.RandomAccess


    public class Multiplet
    extends java.util.Vector<Peak>
    Class designed to store peaks.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Multiplet()
      Creates new Multiplet
      Multiplet(Peak p) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addMultiplet(Multiplet madd) 
      void addPeak(Peak p) 
      double[] getAllCentroids() 
      Peak[] getAllPeaks() 
      double[] getCentroidErrors() 
      Peak getPeak(int index) 
      Peak getPeakNear(double centroid, double tolerance)
      Returns peak nearest given centroid if distance is less than the given tolerance.
      Multiplet lastPeaks(int n)
      Returns a new multiplet containing only the last n peaks of this multiplet.
      int removeAreaGreaterThan(double max)
      Removes all peaks with greater than the specified area.
      int removeAreaLessThan(double min)
      Removes all peaks with less than the specified area.
      • Methods inherited from class java.util.Vector

        add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream
    • Constructor Detail

      • Multiplet

        public Multiplet()
        Creates new Multiplet
      • Multiplet

        public Multiplet(Peak p)
    • Method Detail

      • getAllPeaks

        public Peak[] getAllPeaks()
      • getAllCentroids

        public double[] getAllCentroids()
      • getCentroidErrors

        public double[] getCentroidErrors()
      • addMultiplet

        public void addMultiplet(Multiplet madd)
      • removeAreaLessThan

        public int removeAreaLessThan(double min)
        Removes all peaks with less than the specified area.
        Parameters:
        min - minimum area to retain the peak
        Returns:
        number of peaks remaining
      • removeAreaGreaterThan

        public int removeAreaGreaterThan(double max)
        Removes all peaks with greater than the specified area.
        Parameters:
        min - minimum area to retain the peak
        Returns:
        number of peaks remaining
      • getPeakNear

        public Peak getPeakNear(double centroid,
                                double tolerance)
        Returns peak nearest given centroid if distance is less than the given tolerance.
      • lastPeaks

        public Multiplet lastPeaks(int n)
        Returns a new multiplet containing only the last n peaks of this multiplet.
      • addPeak

        public void addPeak(Peak p)
      • getPeak

        public Peak getPeak(int index)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.