Class TickerPriceStatistics

java.lang.Object
org.drip.param.quote.TickerPriceStatistics

public class TickerPriceStatistics
extends java.lang.Object
TickerPriceStatistics maintains the Running "Thin" Price Statistics for a Single Ticker.

Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    TickerPriceStatistics​(double price)
    TickerPriceStatistics Constructor
  • Method Summary

    Modifier and Type Method Description
    boolean addInstance​(double price)
    Add a Single Price Instance
    double aggregate()
    Retrieve the Aggregate Ticker Price
    double average()
    Retrieve the Average Ticker Price
    int count()
    Retrieve the Ticker Instance Count
    double maximum()
    Retrieve the Maximum Ticker Price
    double minimum()
    Retrieve the Minimum Ticker Price
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TickerPriceStatistics

      public TickerPriceStatistics​(double price) throws java.lang.Exception
      TickerPriceStatistics Constructor
      Parameters:
      price - The Instance Price
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • count

      public int count()
      Retrieve the Ticker Instance Count
      Returns:
      The Ticker Instance Count
    • minimum

      public double minimum()
      Retrieve the Minimum Ticker Price
      Returns:
      The Minimum Ticker Price
    • maximum

      public double maximum()
      Retrieve the Maximum Ticker Price
      Returns:
      The Maximum Ticker Price
    • aggregate

      public double aggregate()
      Retrieve the Aggregate Ticker Price
      Returns:
      The Aggregate Ticker Price
    • average

      public double average()
      Retrieve the Average Ticker Price
      Returns:
      The Average Ticker Price
    • addInstance

      public boolean addInstance​(double price)
      Add a Single Price Instance
      Parameters:
      price - The Instance Price
      Returns:
      TRUE - The Price Instance successfully added
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object