~ubuntu-branches/ubuntu/maverick/openturns/maverick

« back to all changes in this revision

Viewing changes to lib/src/Base/Stat/LinearModel.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2010-05-10 17:27:55 UTC
  • mfrom: (1.1.4 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100510172755-cb5ynskknqqi5rhp
Tags: 0.13.2-2ubuntu1
* Merge with Debian testing. No changes left.
* ubuntu_fix-python-2.6.patch: fix detection of python 2.6 libs, to not use
  LOCALMODLIBS. This pulls a dependency on SSL and makes the package FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *  @file  LinearModel.hxx
4
4
 *  @brief LinearModel implements the linear model
5
5
 *
6
 
 *  (C) Copyright 2005-2007 EDF-EADS-Phimeca
 
6
 *  (C) Copyright 2005-2010 EDF-EADS-Phimeca
7
7
 *
8
8
 *  This library is free software; you can redistribute it and/or
9
9
 *  modify it under the terms of the GNU Lesser General Public
20
20
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21
21
 *
22
22
 *  @author: $LastChangedBy: dutka $
23
 
 *  @date:   $LastChangedDate: 2009-05-28 14:47:53 +0200 (jeu. 28 mai 2009) $
24
 
 *  Id:      $Id: LinearModel.hxx 1262 2009-05-28 12:47:53Z dutka $
 
23
 *  @date:   $LastChangedDate: 2010-02-04 16:44:49 +0100 (jeu. 04 févr. 2010) $
 
24
 *  Id:      $Id: LinearModel.hxx 1473 2010-02-04 15:44:49Z dutka $
25
25
 */
26
26
#ifndef OPENTURNS_LINEARMODEL_HXX
27
27
#define OPENTURNS_LINEARMODEL_HXX
33
33
#include "Exception.hxx"
34
34
#include "ConfidenceInterval.hxx"
35
35
#include "PersistentCollection.hxx"
 
36
#include "Collection.hxx"
36
37
#include "TestResult.hxx"
37
38
 
38
39
namespace OpenTURNS
60
61
        typedef Common::InvalidArgumentException                     InvalidArgumentException;
61
62
        typedef Type::Description                                    Description;
62
63
        typedef Type::NumericalPoint                                 NumericalPoint;
 
64
        typedef Type::Collection<Stat::ConfidenceInterval>           ConfidenceIntervalCollection;
63
65
        typedef Type::PersistentCollection<Stat::ConfidenceInterval> ConfidenceIntervalPersistentCollection;
 
66
        typedef Type::Collection<NumericalScalar>                    NumericalScalarCollection;
64
67
        typedef Type::PersistentCollection<NumericalScalar>          NumericalScalarPersistentCollection;
65
68
        typedef Common::StorageManager                               StorageManager;
66
69
 
70
73
 
71
74
        /** Standard constructor */
72
75
        LinearModel(const NumericalPoint & vectorR,
73
 
                    const ConfidenceIntervalPersistentCollection & intervalsColl,
74
 
                    const NumericalScalarPersistentCollection & pValuesOfR) throw(InvalidArgumentException);
 
76
                    const ConfidenceIntervalCollection & intervalsColl,
 
77
                    const NumericalScalarCollection & pValuesOfR) /* throw(InvalidArgumentException) */;
75
78
        
76
79
        /** Constructor from NumericalPoint */
77
80
        LinearModel(const NumericalPoint & vectorR);
85
88
        
86
89
        /** get vector, get intervals*/
87
90
        NumericalPoint getRegression() const;
88
 
        ConfidenceIntervalPersistentCollection getConfidenceIntervals() const;
89
 
        NumericalScalarPersistentCollection getPValues() const;
 
91
        ConfidenceIntervalCollection getConfidenceIntervals() const;
 
92
        NumericalScalarCollection getPValues() const;
90
93
        
91
94
        /** getPredicted : build an sample of predicted values */
92
 
        NumericalSample getPredicted(const NumericalSample & predictor) const throw(InvalidArgumentException);
 
95
        NumericalSample getPredicted(const NumericalSample & predictor) const /* throw(InvalidArgumentException) */;
93
96
        
94
97
        /** getResidual */
95
98
        NumericalSample getResidual(const NumericalSample & predictor,
96
 
                                    const NumericalSample & measured) const throw(InvalidArgumentException);
 
99
                                    const NumericalSample & measured) const /* throw(InvalidArgumentException) */;
97
100
        
98
101
        /** Method save() stores the object through the StorageManager */
99
 
        void save(const StorageManager::Advocate & adv) const;
 
102
        void save(StorageManager::Advocate & adv) const;
100
103
 
101
104
        /** Method load() reloads the object from the StorageManager */
102
 
        void load(const StorageManager::Advocate & adv);
 
105
        void load(StorageManager::Advocate & adv);
103
106
 
104
107
 
105
108
      protected: