Package net.lifove.clami
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 voidcalculateSpearmanCorrelation(weka.core.Instances instances, weka.core.Instances instancesByCLA)Compute correlation between each metrics using Spearman correlationvoidksTest(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-testdoubleselectPercentileCutoff(weka.core.Instances instances, java.lang.String positiveLabel, weka.core.Instances instancesByCLA, double score, double totalViolation, double sum)Return percentile cutoff
-
Constructor Details
-
Tools
public Tools()
-
-
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-
-