Package elki.result

Class SamplingResult


  • public class SamplingResult
    extends java.lang.Object
    Wrapper for storing the current database sample.
    Since:
    0.5.0
    Author:
    Erich Schubert
    • Field Detail

      • sample

        DBIDs sample
        The actual selection
    • Constructor Detail

      • SamplingResult

        public SamplingResult​(Relation<?> rel)
        Constructor.
        Parameters:
        rel - Relation
    • Method Detail

      • getSample

        public DBIDs getSample()
        Returns:
        the current sample
      • setSample

        public void setSample​(DBIDs sample)
        Note: trigger a resultchanged event!
        Parameters:
        sample - the new sample
      • getLongName

        public java.lang.String getLongName()
      • getShortName

        public java.lang.String getShortName()
      • getSamplingResult

        public static SamplingResult getSamplingResult​(Relation<?> rel)
        Get the sampling result attached to a relation
        Parameters:
        rel - Relation
        Returns:
        Sampling result.