SignalStatsPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef IGNITION_MATH_SIGNAL_STATS_PRIVATE_HH_
18 #define IGNITION_MATH_SIGNAL_STATS_PRIVATE_HH_
19 
20 #include <memory>
21 #include <vector>
22 
23 namespace ignition
24 {
25  namespace math
26  {
29  {
31  public: double data;
32 
35  public: double extraData;
36 
38  public: unsigned int count;
39 
42  public: SignalStatisticPrivate *Clone() const
43  {
44  return new SignalStatisticPrivate(*this);
45  }
46  };
47 
48  class SignalStatistic;
49 
52  typedef std::shared_ptr<SignalStatistic> SignalStatisticPtr;
53 
56  typedef std::vector<SignalStatisticPtr> SignalStatistic_V;
57 
60  {
62  public: SignalStatistic_V stats;
63 
66  public: SignalStatsPrivate *Clone() const
67  {
68  return new SignalStatsPrivate(*this);
69  }
70  };
71  }
72 }
73 #endif
74 
double data
Scalar representation of signal data.
Definition: SignalStatsPrivate.hh:31
double extraData
Scalar representation of extra signal data.
Definition: SignalStatsPrivate.hh:35
SignalStatisticPrivate * Clone() const
Clone the SignalStatisticPrivate object.
Definition: SignalStatsPrivate.hh:42
Statistical properties of a discrete time scalar signal.
Definition: SignalStats.hh:33
Private data class for the SignalStats class.
Definition: SignalStatsPrivate.hh:59
SignalStatsPrivate * Clone() const
Clone the SignalStatsPrivate object.
Definition: SignalStatsPrivate.hh:66
Private data class for the SignalStatistic class.
Definition: SignalStatsPrivate.hh:28
SignalStatistic_V stats
Vector of SignalStatistics.
Definition: SignalStatsPrivate.hh:62
std::shared_ptr< SignalStatistic > SignalStatisticPtr
Definition: SignalStatsPrivate.hh:52
std::vector< SignalStatisticPtr > SignalStatistic_V
Definition: SignalStatsPrivate.hh:56
unsigned int count
Count of data values in mean.
Definition: SignalStatsPrivate.hh:38
Definition: AffineException.hh:30