File: silhouette_data.hpp

package info (click to toggle)
python-pyclustering 0.10.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 11,128 kB
  • sloc: cpp: 38,888; python: 24,311; sh: 384; makefile: 105
file content (58 lines) | stat: -rwxr-xr-x 1,006 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*!

@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause

*/

#pragma once


#include <vector>


namespace pyclustering {

namespace clst {


/*!

@brief  Sequence container that contains Silhouette's score for each point.

*/
using silhouette_sequence      = std::vector<double>;


/*!

@class  silhouette_data silhouette_data.hpp pyclustering/cluster/silhouette_data.hpp

@brief  Silhouette analysis result that contain information about Silhouette score for each point.

*/
class silhouette_data {
private:
    silhouette_sequence m_scores;

public:
    /*!
    
    @brief  Returns constant reference to the container with Silhouette score for each point
    
    */
    const silhouette_sequence & get_score() const { return m_scores; }

    /*!

    @brief  Returns reference to the container with Silhouette score for each point

    */
    silhouette_sequence & get_score() { return m_scores; }
};


}

}