Class Tools

java.lang.Object
net.lifove.clami.Tools

public class Tools
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Tools()  
  • Method Summary

    Modifier and Type Method Description
    void calculateSpearmanCorrelation​(weka.core.Instances instances, weka.core.Instances instancesByCLA)
    Compute correlation between each metrics using Spearman correlation
    void ksTest​(weka.core.Instances instancesByCLA, weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)
    Compute number of max vote, value of max vote using ks-test
    double selectPercentileCutoff​(weka.core.Instances instances, java.lang.String positiveLabel, weka.core.Instances instancesByCLA, double score, double totalViolation, double sum)
    Return percentile cutoff

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • selectPercentileCutoff

      public double selectPercentileCutoff​(weka.core.Instances instances, java.lang.String positiveLabel, weka.core.Instances instancesByCLA, double score, double totalViolation, double sum)
      Return percentile cutoff
      Parameters:
      instances -
      positiveLabel -
      instancesByCLA -
      score -
      totalViolation -
      sum -
      Returns:
    • ksTest

      public void ksTest​(weka.core.Instances instancesByCLA, weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)
      Compute number of max vote, value of max vote using ks-test
      Parameters:
      instancesByCLA -
      instances -
      percentileCutoff -
      positiveLabel -
    • calculateSpearmanCorrelation

      public void calculateSpearmanCorrelation​(weka.core.Instances instances, weka.core.Instances instancesByCLA)
      Compute correlation between each metrics using Spearman correlation
      Parameters:
      instances -
      instancesByCLA -