StatisticMeasures.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package MemoryX::Core::MemoryTypes
19  * @author Adil Orhan (ubdnw at student dot kit dot edu)
20  * @date 2015
21  * @copyright http://www.gnu.org/licenses/gpl.txt
22  * GNU General Public License
23  */
24 
25 #pragma once
26 
28 
29 #include <MemoryX/interface/memorytypes/StatisticMeasures.h>
30 
31 namespace memoryx::VariantType
32 {
34  armarx::Variant::addTypeName("::memoryx::StatisticMeasuresBase");
35 }
36 
37 namespace memoryx
38 {
39  class StatisticMeasures;
41 
42  class StatisticMeasures : virtual public StatisticMeasuresBase
43  {
44  public:
46  StatisticMeasures(double mean, double standardDeviation, double relativeStandardDeviation);
47  ~StatisticMeasures() override;
48 
49  double getMean();
50  double getStandardDeviation();
52 
53  Ice::ObjectPtr ice_clone() const override;
54 
55  armarx::VariantDataClassPtr clone(const Ice::Current& c = Ice::emptyCurrent) const override;
56 
57  std::string output(const Ice::Current& = Ice::emptyCurrent) const override;
58 
59  armarx::VariantTypeId getType(const Ice::Current& c = Ice::emptyCurrent) const override;
60 
61  bool validate(const Ice::Current& c = Ice::emptyCurrent) override;
62 
63  public:
64  void serialize(const armarx::ObjectSerializerBasePtr& serializer,
65  const ::Ice::Current& = Ice::emptyCurrent) const override;
66  void deserialize(const armarx::ObjectSerializerBasePtr& serializer,
67  const ::Ice::Current& = Ice::emptyCurrent) override;
68  };
69 } // namespace memoryx
memoryx::StatisticMeasures::deserialize
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: StatisticMeasures.cpp:116
memoryx::StatisticMeasures::serialize
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: StatisticMeasures.cpp:104
memoryx::VariantType
Definition: Affordance.h:31
memoryx::StatisticMeasures::getRelativeStandardDeviation
double getRelativeStandardDeviation()
Definition: StatisticMeasures.cpp:65
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:46
memoryx::StatisticMeasures::~StatisticMeasures
~StatisticMeasures() override
Definition: StatisticMeasures.cpp:48
memoryx::StatisticMeasures::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: StatisticMeasures.cpp:71
memoryx::StatisticMeasures::getMean
double getMean()
Definition: StatisticMeasures.cpp:53
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::StatisticMeasures
Definition: StatisticMeasures.h:42
armarx::mean
std::optional< float > mean(const boost::circular_buffer< NameValueMap > &buffer, const std::string &key)
Definition: KinematicUnitGuiPlugin.cpp:1620
memoryx::StatisticMeasures::getStandardDeviation
double getStandardDeviation()
Definition: StatisticMeasures.cpp:59
memoryx::StatisticMeasures::getType
armarx::VariantTypeId getType(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: StatisticMeasures.cpp:92
armarx::VariantTypeId
Ice::Int VariantTypeId
Definition: Variant.h:43
memoryx::StatisticMeasures::output
std::string output(const Ice::Current &=Ice::emptyCurrent) const override
Definition: StatisticMeasures.cpp:83
memoryx::StatisticMeasures::validate
bool validate(const Ice::Current &c=Ice::emptyCurrent) override
Definition: StatisticMeasures.cpp:98
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
Variant.h
memoryx::StatisticMeasures::StatisticMeasures
StatisticMeasures()
Definition: StatisticMeasures.cpp:32
memoryx::StatisticMeasures::clone
armarx::VariantDataClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: StatisticMeasures.cpp:77
armarx::Variant::addTypeName
static VariantTypeId addTypeName(const std::string &typeName)
Register a new type for the use in a Variant.
Definition: Variant.cpp:869