|
Bsoft
2.1.0
Bernard's software package
|
Functions to compare models and components. More...
Go to the source code of this file.
Functions | |
| long | model_component_number_difference (Bmodel *model1, Bmodel *model2) |
| Compares the numbers of components in two models. More... | |
| long | model_maxnum_components (Bmodel *model) |
| Calculates the largest number of components in a model. More... | |
| double | model_compare (Bmodel *model1, Bmodel *model2) |
| Compares two models. More... | |
| Matrix | model_distance_matrix (Bmodel *model, int view_flag) |
| Calculates the distance matrix for a model. More... | |
| Matrix | model_distance_matrix (Bmodel *m1, Bmodel *m2) |
| Calculates the distance matrix between two models. More... | |
| Matrix | model_adjacency_matrix (Bmodel *model) |
| Constructs the adjacency matrix for a model. More... | |
| long | model_consolidate (Bmodel *model, double distance) |
| Consolidates close components within a model. More... | |
| Bmodel * | models_consensus (Bmodel *model, double distance) |
| Determines a consensus between models in a list. More... | |
Functions to compare models and components.
Definition in file model_compare.h.
Constructs the adjacency matrix for a model.
| *model | model structure. |
The matrix contains ones for adjacent components and zero elsewhere. Only the first model in the linked list is used. The component selections are reset.
Definition at line 152 of file model_compare.cpp.
Compares two models.
| *model1 | first model structure. |
| *model2 | second model structure. |
Only the first models in the linked lists are compared.
Definition at line 66 of file model_compare.cpp.
Compares the numbers of components in two models.
| *model1 | first model. |
| *model2 | second model. |
Only the first models in the lists are compared.
Definition at line 26 of file model_compare.cpp.
| long model_consolidate | ( | Bmodel * | model, |
| double | distance | ||
| ) |
Consolidates close components within a model.
| *model | model structure. |
| distance | cutoff distance to consider components to be the same. |
A matrix is calculated from the pairwise distances between selected components. Components closer to each other than the given distance are consolidated. Only the first model in the linked list is used.
Definition at line 264 of file model_compare.cpp.
Calculates the distance matrix between two models.
| *m1 | first model structure. |
| *m2 | second model structure. |
The matrix is calculated from the pairwise distances between selected components. Only the first model in each linked list is used.
Definition at line 236 of file model_compare.cpp.
Calculates the distance matrix for a model.
| *model | model structure. |
| view_flag | flag to include views. |
The matrix is calculated from the pairwise distances between selected components, with the option to include the views. When the views are included, the euclidean distances are rescaled to the maximum so that their ranges are similar to the view differences. Only the first model in the linked list is used.
Definition at line 189 of file model_compare.cpp.
| long model_maxnum_components | ( | Bmodel * | model | ) |
Calculates the largest number of components in a model.
| *model | model. |
Definition at line 43 of file model_compare.cpp.
Determines a consensus between models in a list.
| *model | model list. |
| distance | cutoff distance to consider components to be the same. |
A matrix is calculated from the pairwise distances between selected components from each apir of models. Components closer to each other than the given distance in different models are consolidated. The component selection field contains the number of contributing components. A new model containing the result is returned.
Definition at line 322 of file model_compare.cpp.