Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Attributes | List of all members
protocols::toolbox::KClusterElement Class Reference

#include <KCluster.hh>

Inheritance diagram for protocols::toolbox::KClusterElement:
Inheritance graph
[legend]
Collaboration diagram for protocols::toolbox::KClusterElement:
Collaboration graph
[legend]

Public Types

typedef utility::vector1< SizeClusterNdxList
 
typedef utility::vector1< SizeClusterTypList
 
typedef utility::vector1< RealClusterDisList
 

Public Member Functions

virtual ~KClusterElement ()
 Automatically generated virtual destructor for class deriving directly from ReferenceCount. More...
 
 KClusterElement ()
 
 KClusterElement (Size nd)
 
void assign_type_data (Size, Size, Real)
 assign a data into a cluster More...
 
void add_new_data (Size ndx_data)
 add a new struture ndx to the data_ndx_ More...
 
void add_new_cluster (Size ndx_data)
 add a new cluster center's data_ndx More...
 
void set_cluster (Size ndx_cluster, Size ndx_data)
 set a cluster center's data_ndx More...
 
Size get_type (Size ndx_data) const
 return data's type(local cluster index) More...
 
Real get_distance (Size ndx_data) const
 return distance between data and center More...
 
Size get_center_ndx (Size ndx_cluster) const
 return cluster center's data_ndx More...
 
const utility::vector1< Size > & get_ndx_list () const
 return the data ndx list of this cluster More...
 
const utility::vector1< Size > & get_ndx_list (Size c) const
 return the ndx list of sub-cluster More...
 
KClusterElementOP get_subcluster (Size nc) const
 return the subcluster More...
 
Size ncluster ()
 
Size get_cur_ncluster () const
 return current cluster number More...
 
Size get_ndata () const
 return current data number More...
 
Size get_data_ndx (Size ndx_data) const
 return current data number More...
 
Real get_max_distance () const
 
Size get_max_dist_ndx () const
 
void clear_data ()
 clean the data list More...
 
void clear ()
 clean the subcluster's list, open edit mode More...
 
void check ()
 check the list, close edit mode More...
 

Private Attributes

ClusterNdxList data_ndx_
 
ClusterTypList type_list_
 
ClusterDisList dist_list_
 
ClusterNdxList center_ndx_
 
utility::vector1
< KClusterElementOP
subclusters_
 
Size n_data_
 
Real max_distance_
 
Size max_dist_ndx_
 
bool edit_mode
 

Member Typedef Documentation

Constructor & Destructor Documentation

protocols::toolbox::KClusterElement::~KClusterElement ( )
virtual

Automatically generated virtual destructor for class deriving directly from ReferenceCount.

Auto-generated virtual destructor

protocols::toolbox::KClusterElement::KClusterElement ( )
inline
protocols::toolbox::KClusterElement::KClusterElement ( Size  nd)
inline

Member Function Documentation

void protocols::toolbox::KClusterElement::add_new_cluster ( Size  ndx_data)
inline

add a new cluster center's data_ndx

void protocols::toolbox::KClusterElement::add_new_data ( Size  ndx_data)
inline

add a new struture ndx to the data_ndx_

void protocols::toolbox::KClusterElement::assign_type_data ( Size  ndx_data,
Size  ndx_cluster,
Real  d 
)

assign a data into a cluster

void protocols::toolbox::KClusterElement::check ( )
inline

check the list, close edit mode

void protocols::toolbox::KClusterElement::clear ( )
inline

clean the subcluster's list, open edit mode

void protocols::toolbox::KClusterElement::clear_data ( )
inline

clean the data list

Size protocols::toolbox::KClusterElement::get_center_ndx ( Size  ndx_cluster) const
inline

return cluster center's data_ndx

Size protocols::toolbox::KClusterElement::get_cur_ncluster ( ) const
inline

return current cluster number

Size protocols::toolbox::KClusterElement::get_data_ndx ( Size  ndx_data) const
inline

return current data number

Real protocols::toolbox::KClusterElement::get_distance ( Size  ndx_data) const
inline

return distance between data and center

Size protocols::toolbox::KClusterElement::get_max_dist_ndx ( ) const
inline
Real protocols::toolbox::KClusterElement::get_max_distance ( ) const
inline
Size protocols::toolbox::KClusterElement::get_ndata ( ) const
inline

return current data number

const utility::vector1<Size>& protocols::toolbox::KClusterElement::get_ndx_list ( ) const
inline

return the data ndx list of this cluster

const utility::vector1<Size>& protocols::toolbox::KClusterElement::get_ndx_list ( Size  c) const
inline

return the ndx list of sub-cluster

References core::pack::dunbrack::c.

KClusterElementOP protocols::toolbox::KClusterElement::get_subcluster ( Size  nc) const
inline

return the subcluster

Size protocols::toolbox::KClusterElement::get_type ( Size  ndx_data) const
inline

return data's type(local cluster index)

Size protocols::toolbox::KClusterElement::ncluster ( )
inline
void protocols::toolbox::KClusterElement::set_cluster ( Size  ndx_cluster,
Size  ndx_data 
)
inline

set a cluster center's data_ndx

Member Data Documentation

ClusterNdxList protocols::toolbox::KClusterElement::center_ndx_
private
ClusterNdxList protocols::toolbox::KClusterElement::data_ndx_
private
ClusterDisList protocols::toolbox::KClusterElement::dist_list_
private
bool protocols::toolbox::KClusterElement::edit_mode
private
Size protocols::toolbox::KClusterElement::max_dist_ndx_
private
Real protocols::toolbox::KClusterElement::max_distance_
private
Size protocols::toolbox::KClusterElement::n_data_
private
utility::vector1< KClusterElementOP > protocols::toolbox::KClusterElement::subclusters_
private
ClusterTypList protocols::toolbox::KClusterElement::type_list_
private

The documentation for this class was generated from the following files: