Vespucci
1.0.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ahcanode.h
Go to the documentation of this file.
1
/*******************************************************************************
2
Copyright (C) 2014-2016 Wright State University - All Rights Reserved
3
Daniel P. Foose - Maintainer/Lead Developer
4
5
This file is part of Vespucci.
6
7
Vespucci is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation, either version 3 of the License, or
10
(at your option) any later version.
11
12
Vespucci is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with Vespucci. If not, see <http://www.gnu.org/licenses/>.
19
*******************************************************************************/
20
#ifndef AHCANODE_H
21
#define AHCANODE_H
22
#include "
Global/libvespucci.h
"
23
#include <mlpack/core.hpp>
24
namespace
Vespucci
{
25
namespace
Math{
26
namespace
Clustering{
34
class
VESPUCCI_EXPORT
AHCANode
35
{
36
public
:
37
AHCANode
(
Vespucci::Math::Clustering::AHCANode
*child1,
Vespucci::Math::Clustering::AHCANode
*child2,
double
distance);
38
virtual
~
AHCANode
();
39
double
distance();
40
Vespucci::Math::Clustering::AHCANode
*child1();
41
Vespucci::Math::Clustering::AHCANode
*child2();
42
virtual
arma::uvec GetChildIndices();
43
void
SetParent(
Vespucci::Math::Clustering::AHCANode
*parent);
44
Vespucci::Math::Clustering::AHCANode
*parent();
45
bool
HasChildren();
46
private
:
47
Vespucci::Math::Clustering::AHCANode
*child1_;
48
Vespucci::Math::Clustering::AHCANode
*child2_;
49
Vespucci::Math::Clustering::AHCANode
*parent_;
50
double
distance_;
51
};
52
53
class
VESPUCCI_EXPORT
AHCALeaf
:
public
Vespucci::Math::Clustering::AHCANode
54
{
55
public
:
56
AHCALeaf
(arma::uword index);
57
arma::uword index();
58
arma::uvec GetChildIndices();
59
private
:
60
arma::uword index_;
61
};
62
}
63
}
64
}
65
66
67
68
#endif // AHCANODE_H
Vespucci::Math::Clustering::AHCALeaf
Definition:
ahcanode.h:53
Vespucci::Math::Clustering::AHCANode
The AHCANode class This class stores a node in the data structure representing the AHCA dendrogram Th...
Definition:
ahcanode.h:34
VESPUCCI_EXPORT
#define VESPUCCI_EXPORT
Definition:
libvespucci.h:7
Vespucci
A namespace for "global" functions, including math functions.
Definition:
fileinterprocess.h:5
libvespucci.h
Projects
VespucciProject
Vespucci
VespucciLibrary
include
Math
Clustering
ahcanode.h
Generated by
1.8.11