uk.ac.gla.dcs.renaissance.iqir.tasks
Class ComputeBaseDensity

java.lang.Object
  extended by bpiwowar.experiments.AbstractTask
      extended by uk.ac.gla.dcs.renaissance.iqir.tasks.ComputeBaseDensity
All Implemented Interfaces:
bpiwowar.experiments.Task

public class ComputeBaseDensity
extends bpiwowar.experiments.AbstractTask


Nested Class Summary
static class ComputeBaseDensity.ConstructionMode
           
static class ComputeBaseDensity.WeightedTerm
          A weighted term
 
Nested classes/interfaces inherited from class bpiwowar.experiments.AbstractTask
bpiwowar.experiments.AbstractTask.Information
 
Field Summary
protected  uk.ac.gla.dcs.renaissance.iqir.tasks.ComputeBaseDensity.SegregateTerm segregateTerm
           
 
Constructor Summary
ComputeBaseDensity()
           
 
Method Summary
 void checkPercentages()
           
 int execute()
           
static
<T> List<T>[]
sublists(List<T> list, double... pctSamples)
          Computes a partition given an array of percentages
static
<T> List<T>[]
sublists(List<T> list, int... nbSamples)
          Divide a list
 
Methods inherited from class bpiwowar.experiments.AbstractTask
getName, getParent, init, processTrailingArguments, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

segregateTerm

protected uk.ac.gla.dcs.renaissance.iqir.tasks.ComputeBaseDensity.SegregateTerm segregateTerm
Constructor Detail

ComputeBaseDensity

public ComputeBaseDensity()
Method Detail

checkPercentages

public void checkPercentages()
                      throws bpiwowar.argparser.IllegalArgumentValue
Throws:
bpiwowar.argparser.IllegalArgumentValue

execute

public int execute()
            throws Throwable
Overrides:
execute in class bpiwowar.experiments.AbstractTask
Throws:
Throwable

sublists

public static <T> List<T>[] sublists(List<T> list,
                                     double... pctSamples)
Computes a partition given an array of percentages

Type Parameters:
T -
Parameters:
list -
pctSamples -
Returns:

sublists

public static <T> List<T>[] sublists(List<T> list,
                                     int... nbSamples)
Divide a list

Type Parameters:
T -
Parameters:
list -
n -
Returns:


Copyright © 2011. All Rights Reserved.