Class TrivialGeneratedOutlier

  • All Implemented Interfaces:
    elki.Algorithm, elki.outlier.OutlierAlgorithm

    public class TrivialGeneratedOutlier
    extends java.lang.Object
    implements elki.outlier.OutlierAlgorithm
    Extract outlier score from the model the objects were generated by.

    This algorithm can only be applied to data that was freshly generated, to the generator model information is still available.

    Since:
    0.5.0
    Author:
    Erich Schubert
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TrivialGeneratedOutlier.Par
      Parameterization class.
      • Nested classes/interfaces inherited from interface elki.Algorithm

        elki.Algorithm.Utils
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) double expect
      Expected share of outliers.
      private static elki.logging.Logging LOG
      Class logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      elki.result.outlier.OutlierResult autorun​(elki.database.Database database)  
      elki.data.type.TypeInformation[] getInputTypeRestriction()  
      elki.result.outlier.OutlierResult run​(elki.database.relation.Relation<elki.data.model.Model> models, elki.database.relation.Relation<elki.data.NumberVector> vecs, elki.database.relation.Relation<?> labels)
      Run the algorithm
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final elki.logging.Logging LOG
        Class logger
      • expect

        double expect
        Expected share of outliers.
    • Constructor Detail

      • TrivialGeneratedOutlier

        public TrivialGeneratedOutlier​(double expect)
        Constructor.
        Parameters:
        expect - Expected share of outliers
      • TrivialGeneratedOutlier

        public TrivialGeneratedOutlier()
        Constructor.
    • Method Detail

      • getInputTypeRestriction

        public elki.data.type.TypeInformation[] getInputTypeRestriction()
        Specified by:
        getInputTypeRestriction in interface elki.Algorithm
      • autorun

        public elki.result.outlier.OutlierResult autorun​(elki.database.Database database)
        Specified by:
        autorun in interface elki.Algorithm
        Specified by:
        autorun in interface elki.outlier.OutlierAlgorithm
      • run

        public elki.result.outlier.OutlierResult run​(elki.database.relation.Relation<elki.data.model.Model> models,
                                                     elki.database.relation.Relation<elki.data.NumberVector> vecs,
                                                     elki.database.relation.Relation<?> labels)
        Run the algorithm
        Parameters:
        models - Model relation
        vecs - Vector relation
        labels - Label relation
        Returns:
        Outlier result