Style Intelligence v12.0

inetsoft.graph.guide.form
Class ConfidenceIntervalStrategy

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

public class ConfidenceIntervalStrategy
extends TargetStrategy

Calculates a confidence interval based on a confidence level


Field Summary
 
Fields inherited from class inetsoft.graph.guide.form.TargetStrategy
sortedIndices
 
Constructor Summary
ConfidenceIntervalStrategy()
          Convenience constructor.
ConfidenceIntervalStrategy(double confidenceLevel)
          Construct with the confidence level.
 
Method Summary
protected  String[] generateDefaultLabels(double[] bandBoundaries, boolean dateTarget)
          Generate labels for boundary lines using the line boundaries.
 double getConfidenceLevel()
           
 String getGenericLabel()
          Gets the generic confidence interval label.
static String getGenericLabel(String confidenceLevel)
          Gets the label for the specified line.
protected  double[] getRuntimeBoundaries(double[] data)
          Generate the runtime boundary values in original order.
protected  void reorderValues(Integer[] indices)
           
 void setConfidenceLevel(double confidenceLevel)
          Set the confidence level.
 
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

ConfidenceIntervalStrategy

public ConfidenceIntervalStrategy()
Convenience constructor.


ConfidenceIntervalStrategy

public ConfidenceIntervalStrategy(double confidenceLevel)
Construct with the confidence level.

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

generateDefaultLabels

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

Specified by:
generateDefaultLabels in class TargetStrategy

getGenericLabel

public String getGenericLabel()
Gets the generic confidence interval label.


getGenericLabel

public static String getGenericLabel(String confidenceLevel)
Gets the label for the specified line.


setConfidenceLevel

public void setConfidenceLevel(double confidenceLevel)
Set the confidence level.


getConfidenceLevel

public double getConfidenceLevel()
Returns:
the current confidence level.

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