Style Intelligence v12.0

inetsoft.graph.guide.form
Class QuantileStrategy

java.lang.Object
  extended by inetsoft.graph.guide.form.TargetStrategy
      extended by inetsoft.graph.guide.form.QuantileStrategy

public class QuantileStrategy
extends TargetStrategy

Calculates Quantiles


Field Summary
 
Fields inherited from class inetsoft.graph.guide.form.TargetStrategy
sortedIndices
 
Constructor Summary
QuantileStrategy()
          Convenience constructor.
QuantileStrategy(int numberOfQuantiles)
          Initialize with a number of quantiles.
 
Method Summary
protected  String[] generateDefaultLabels(double[] bandBoundaries, boolean dateTarget)
          Generate labels for boundary lines using the line boundaries.
static String getGenericLabel()
          Gets the label(for description).
 int getNumberOfQuantiles()
           
protected  double[] getRuntimeBoundaries(double[] data)
          Generate the runtime boundary values in original order.
protected  void reorderValues(Integer[] indices)
           
 void setNumberOfQuantiles(int numberOfQuantiles)
          Set the number of qunatiles to split the data into.
 
Methods inherited from class inetsoft.graph.guide.form.TargetStrategy
calculateBoundaries, generateLabels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuantileStrategy

public QuantileStrategy()
Convenience constructor.


QuantileStrategy

public QuantileStrategy(int numberOfQuantiles)
Initialize with a number of quantiles.

Method Detail

getRuntimeBoundaries

protected double[] getRuntimeBoundaries(double[] data)
Generate the runtime boundary values in original order.

Specified by:
getRuntimeBoundaries in class TargetStrategy
Returns:

reorderValues

protected void reorderValues(Integer[] indices)
Specified by:
reorderValues in class TargetStrategy

getGenericLabel

public static String getGenericLabel()
Gets the label(for description).


generateDefaultLabels

protected String[] generateDefaultLabels(double[] bandBoundaries,
                                         boolean dateTarget)
Generate labels for boundary lines using the line boundaries.

Specified by:
generateDefaultLabels in class TargetStrategy

getNumberOfQuantiles

public int getNumberOfQuantiles()
Returns:
the number of quantiles the data will be split into.

setNumberOfQuantiles

public void setNumberOfQuantiles(int numberOfQuantiles)
Set the number of qunatiles to split the data into.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.