trans.roc
Class SgrBacCounter

java.lang.Object
  extended bytrans.roc.SgrBacCounter

public class SgrBacCounter
extends java.lang.Object

Application for scoring '.sgr' files for positives and negatives in relation to the BAC spike in data.


Constructor Summary
SgrBacCounter(java.lang.String[] args)
           
 
Method Summary
 Bin findBin(Sgr sgr)
          Finds an appropriate bin given an sgr object
static double fractionPositive(java.util.ArrayList doubles, double scoreCutOff, double divider)
          Given an ArrayList of Double, calculates the fraction that is >= scoreCutOff.
static void main(java.lang.String[] args)
           
 void makeBins()
           
 void makePositives()
           
static int positive(Positive[] pos, Sgr sgr)
          Checks to see if an sgr object is one of the positives, if not returns -1, otherwise returns index number.
 void scanSgrArray()
          Scans an sgr array, sorting into bins.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SgrBacCounter

public SgrBacCounter(java.lang.String[] args)
Method Detail

scanSgrArray

public void scanSgrArray()
Scans an sgr array, sorting into bins.


positive

public static int positive(Positive[] pos,
                           Sgr sgr)
Checks to see if an sgr object is one of the positives, if not returns -1, otherwise returns index number.


findBin

public Bin findBin(Sgr sgr)
Finds an appropriate bin given an sgr object


main

public static void main(java.lang.String[] args)

fractionPositive

public static double fractionPositive(java.util.ArrayList doubles,
                                      double scoreCutOff,
                                      double divider)
Given an ArrayList of Double, calculates the fraction that is >= scoreCutOff.


makeBins

public void makeBins()

makePositives

public void makePositives()