chernoff.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* ArmarX is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
7
*
8
* ArmarX is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* @author Joana Plewnia ( uhfpm at student dot kit dot edu )
17
* @date 2023
18
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19
* GNU General Public License
20
*/
21
22
#pragma once
23
24
#include <algorithm>
25
#include <map>
26
#include <vector>
27
28
#include <
RobotAPI/libraries/aron/core/data/variant/All.h
>
29
30
namespace
armarx::aron::similarity::chernoff
31
{
32
double
compute_similarity
(
const
aron::data::NDArrayPtr
p1,
const
aron::data::NDArrayPtr
p2);
33
34
armarx::aron::data::NDArray
normalize_ndarray
(
armarx::aron::data::NDArrayPtr
array,
int
i);
35
36
std::vector<double>
calculate_mean_values
(
armarx::aron::data::NDArray
array);
37
38
std::vector<std::vector<double>>
calculate_covariance_matrix
(
armarx::aron::data::NDArray
array,
39
std::vector<double>
mean
);
40
41
double
calculate_bhattacharyya_distance
(std::vector<double> mean_one, std::vector<double> mean_two,
42
std::vector<std::vector<double>> covariance_one,
43
std::vector<std::vector<double>> covariance_two);
44
}
armarx::aron::similarity::chernoff
Definition:
chernoff.cpp:7
armarx::aron::data::NDArray
Definition:
NDArray.h:48
armarx::aron::similarity::chernoff::calculate_mean_values
std::vector< double > calculate_mean_values(data::NDArray array)
Definition:
chernoff.cpp:35
armarx::aron::similarity::chernoff::normalize_ndarray
data::NDArray normalize_ndarray(data::NDArrayPtr array, int j)
Definition:
chernoff.cpp:62
armarx::aron::data::NDArrayPtr
std::shared_ptr< NDArray > NDArrayPtr
Definition:
NDArray.h:46
armarx::mean
std::optional< float > mean(const boost::circular_buffer< NameValueMap > &buffer, const std::string &key)
Definition:
KinematicUnitGuiPlugin.cpp:1615
All.h
armarx::aron::similarity::chernoff::compute_similarity
double compute_similarity(const aron::data::NDArrayPtr p1, const aron::data::NDArrayPtr p2)
Definition:
chernoff.cpp:10
armarx::aron::similarity::chernoff::calculate_covariance_matrix
std::vector< std::vector< double > > calculate_covariance_matrix(data::NDArray array, std::vector< double > mean=std::vector< double >())
Definition:
chernoff.cpp:77
armarx::aron::similarity::chernoff::calculate_bhattacharyya_distance
double calculate_bhattacharyya_distance(std::vector< double > mean_one, std::vector< double > mean_two, std::vector< std::vector< double > > covariance_one, std::vector< std::vector< double > > covariance_two)
Definition:
chernoff.cpp:125
RobotAPI
libraries
aron
similarity
data
image
chernoff.h
Generated on Sat Oct 12 2024 09:14:10 for armarx_documentation by
1.8.17