Package elki.result

Class EvaluationResult.MeasurementGroup

    • Field Detail

      • groupname

        private java.lang.String groupname
        Group name
    • Constructor Detail

      • MeasurementGroup

        protected MeasurementGroup​(java.lang.String gname)
        Constructor.
        Parameters:
        gname - Group name
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the group name.
        Returns:
        Group name
      • addMeasure

        public EvaluationResult.MeasurementGroup addMeasure​(java.lang.String name,
                                                            double val,
                                                            double min,
                                                            double max,
                                                            boolean lowerisbetter)
        Add a single measurement.
        Parameters:
        name - Measurement name
        val - Observed value
        min - Minimum value
        max - Maximum value
        lowerisbetter - Flag
        Returns:
        this (Builder pattern)
      • addMeasure

        public EvaluationResult.MeasurementGroup addMeasure​(java.lang.String name,
                                                            double val,
                                                            double min,
                                                            double max,
                                                            double exp,
                                                            boolean lowerisbetter)
        Add a single measurement.
        Parameters:
        name - Measurement name
        val - Observed value
        min - Minimum value
        exp - Expected value
        lowerisbetter - Flag
        Returns:
        this (Builder pattern)
      • hasMeasure

        public boolean hasMeasure​(java.lang.String name)
        Check if a measurement already exists.
        Parameters:
        name - Measurement name
        Returns:
        true if measurement exists
      • getMeasure

        public EvaluationResult.Measurement getMeasure​(java.lang.String name)
        Check if a measurement already exists.
        Parameters:
        name - Measurement name
        Returns:
        true if measurement exists