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_SIGNALSTATSPRIVATE_HH_
18 #define IGNITION_MATH_SIGNALSTATSPRIVATE_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: std::unique_ptr<SignalStatisticPrivate> Clone() const
43  {
44  std::unique_ptr<SignalStatisticPrivate> dataPtr(
45  new SignalStatisticPrivate(*this));
46  return dataPtr;
47  }
48  };
49 
50  class SignalStatistic;
51 
54  typedef std::shared_ptr<SignalStatistic> SignalStatisticPtr;
55 
58  typedef std::vector<SignalStatisticPtr> SignalStatistic_V;
59 
62  {
65 
68  public: std::unique_ptr<SignalStatsPrivate> Clone() const
69  {
70  std::unique_ptr<SignalStatsPrivate> dataPtr(
71  new SignalStatsPrivate(*this));
72  return dataPtr;
73  }
74  };
75  }
76 }
77 #endif
double data
Scalar representation of signal data.
Definition: SignalStatsPrivate.hh:31
std::unique_ptr< SignalStatisticPrivate > Clone() const
Clone the SignalStatisticPrivate object.
Definition: SignalStatsPrivate.hh:42
double extraData
Scalar representation of extra signal data.
Definition: SignalStatsPrivate.hh:35
Private data class for the SignalStats class.
Definition: SignalStatsPrivate.hh:61
Private data class for the SignalStatistic class.
Definition: SignalStatsPrivate.hh:28
SignalStatistic_V stats
Vector of SignalStatistics.
Definition: SignalStatsPrivate.hh:64
std::shared_ptr< SignalStatistic > SignalStatisticPtr
Definition: SignalStatsPrivate.hh:54
std::vector< SignalStatisticPtr > SignalStatistic_V
Definition: SignalStatsPrivate.hh:58
unsigned int count
Count of data values in mean.
Definition: SignalStatsPrivate.hh:38
Definition: Angle.hh:38
std::unique_ptr< SignalStatsPrivate > Clone() const
Clone the SignalStatsPrivate object.
Definition: SignalStatsPrivate.hh:68