Package org.drip.param.quote
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.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Cash Flow, Valuation, Market, Pricing, and Quoting Parameters
- Package = Multi-sided Multi-Measure Ticks Quotes
- 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 Instancedouble
aggregate()
Retrieve the Aggregate Ticker Pricedouble
average()
Retrieve the Average Ticker Priceint
count()
Retrieve the Ticker Instance Countdouble
maximum()
Retrieve the Maximum Ticker Pricedouble
minimum()
Retrieve the Minimum Ticker Pricejava.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.ExceptionTickerPriceStatistics 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 classjava.lang.Object
-