sequencestatistics.hpp
Go to the documentation of this file.
1 /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 /*
4  Copyright (C) 2006, 2007, 2008 Ferdinando Ametrano
5  Copyright (C) 2006 Cristina Duminuco
6 
7  This file is part of QuantLib, a free-software/open-source library
8  for financial quantitative analysts and developers - http://quantlib.org/
9 
10  QuantLib is free software: you can redistribute it and/or modify it
11  under the terms of the QuantLib license. You should have received a
12  copy of the license along with this program; if not, please email
13  <quantlib-dev@lists.sf.net>. The license is also available online at
14  <http://quantlib.org/license.shtml>.
15 
16  This program is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18  FOR A PARTICULAR PURPOSE. See the license for more details.
19 */
20 
21 #ifndef qla_sequencestatistics_hpp
22 #define qla_sequencestatistics_hpp
23 
24 #include <oh/libraryobject.hpp>
25 #include <ql/types.hpp>
26 
27 namespace QuantLib {
28  class Matrix;
29 
30  class GeneralStatistics;
31 
32  template<class Stat>
33  class GenericGaussianStatistics;
34 
35  typedef GenericGaussianStatistics<GeneralStatistics> GaussianStatistics;
36 
37  template <class S>
38  class GenericRiskStatistics;
39 
40  typedef GenericRiskStatistics<GaussianStatistics> RiskStatistics;
41 
42  typedef RiskStatistics Statistics;
43  class IncrementalStatistics;
44 
45  template <class StatisticsType>
46  class GenericSequenceStatistics;
47 
48  typedef GenericSequenceStatistics<Statistics> SequenceStatistics;
50 }
51 
52 namespace QuantLibAddin {
53 
55  public ObjectHandler::LibraryObject<QuantLib::SequenceStatistics> {
56  public:
58  const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
59  QuantLib::Size dimension,
60  bool permanent);
62  const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
63  QuantLib::Size dimension,
64  const QuantLib::Matrix& values,
65  const std::vector<QuantLib::Real>& weights,
66  bool permanent);
67  };
68 
70  public ObjectHandler::LibraryObject<QuantLib::SequenceStatisticsInc> {
71  public:
73  const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
74  QuantLib::Size dimension,
75  bool permanent);
77  const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
78  QuantLib::Size dimension,
79  const QuantLib::Matrix& values,
80  const std::vector<QuantLib::Real>& weights,
81  bool permanent);
82  };
83 
84 }
85 
86 #endif
GenericSequenceStatistics< IncrementalStatistics > SequenceStatisticsInc
Definition: sequencestatistics.hpp:49
Definition: sequencestatistics.hpp:54
GenericSequenceStatistics< Statistics > SequenceStatistics
Definition: correlation.hpp:62
GenericRiskStatistics< GaussianStatistics > RiskStatistics
Definition: correlation.hpp:55
RiskStatistics Statistics
Definition: correlation.hpp:59
SequenceStatistics(const boost::shared_ptr< ObjectHandler::ValueObject > &properties, QuantLib::Size dimension, bool permanent)
Definition: correlation.hpp:62
Definition: abcd.hpp:38
SequenceStatisticsInc(const boost::shared_ptr< ObjectHandler::ValueObject > &properties, QuantLib::Size dimension, bool permanent)
GenericGaussianStatistics< GeneralStatistics > GaussianStatistics
Definition: correlation.hpp:50
Definition: abcd.hpp:30
Definition: sequencestatistics.hpp:69