Package com.packetnode.blackdossier.quote

Examples of com.packetnode.blackdossier.quote.Quote


      Session session = null;
 
    try
    {
      String ticker = qf.getTicker("AA");
      Quote quote = qf.getQuote(ticker);
      List<Quote> bt = qf.getQuotes(ticker, 3);
      System.out.println("Found " + bt.size() + " records for " + ticker);  
     
      double[] values = new double[bt.size()];
      int i = 0;
      Iterator<Quote> it = bt.iterator();
      while (it.hasNext())
      {
        Quote q = it.next();
        values[i++] = q.getAdjustedClose().doubleValue();
      }
      GaussianMixtureDistribution dg = new GaussianMixtureDistribution(3, values);
      System.out.println(values.length);
      System.out.println(dg);
      System.out.println(dg.probability(.891));
View Full Code Here

TOP

Related Classes of com.packetnode.blackdossier.quote.Quote

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.