The Cluster Routines. More...
#include "DAGH.h"#include "DAGHParams.h"#include "DAGHDefaults.h"#include "GridHierarchy.h"#include "GridHierarchyCalls.h"#include "GridHierarchyIndex.h"#include "GridFunction.h"#include "GridFunctionCalls.h"#include "GridFunctionIndex.h"#include "GridData1.h"#include "GridData2.h"#include "GridData3.h"#include "CommServer.h"#include "Coords.h"#include "DCoords.h"#include "BBox.h"#include "BBoxList.h"#include "AllocError.h"Go to the source code of this file.
Functions | |
| template<int dim> | |
| void | Cluster (GridData< short, dim > &flag, BBoxList &bblexclude, double Efficiency, int MinWidth, int MaxWidth, int BufferWidth, BBoxList &Result) |
| template<> | |
| void | Cluster (GridData< short, 1 > &flag, BBoxList &bblexclude, double Efficiency, int MinWidth, int MaxWidth, int BufferWidth, BBoxList &Result) |
Clusters a grid function flag into a list of bounding boxes result. | |
| template<> | |
| void | Cluster (GridData< short, 2 > &flag, BBoxList &bblexclude, double Efficiency, int MinWidth, int MaxWidth, int BufferWidth, BBoxList &Result) |
| template<> | |
| void | Cluster (GridData< short, 3 > &flag, BBoxList &bblexclude, double Efficiency, int MinWidth, int MaxWidth, int BufferWidth, BBoxList &Result) |
| template<class Type , int dim> | |
| void | DAGHCluster (GridFunction< Type, dim > &gf, const int time, const int level, const int min_blk_width, const int max_blk_width, const int buf_width, const double min_eff, const Type thresh, BBoxList &bbl, BBoxList &bblexclude) |
| template<class Type , int dim> | |
| void | DAGHCluster (GridFunction< Type, dim > &gf, const int time, const int level, const int min_blk_width, const int max_blk_width, const int buf_width, const double min_eff, const Type thresh, BBoxList &nest_bbl, BBoxList &bbl, BBoxList &bblexclude) |
| template<class Type > | |
| void | DAGHCluster (GridFunction< Type, 3 > &gf, const int time, const int level, const int min_blk_width, const int max_blk_width, const int buf_width, const double min_eff, const Type thresh, BBoxList &bbl, BBoxList &bblexclude) |
| template<class Type > | |
| void | DAGHCluster (GridFunction< Type, 3 > &gf, const int time, const int level, const int min_blk_width, const int max_blk_width, const int buf_width, const double min_eff, const Type thresh, BBoxList &nest_bbl, BBoxList &bbl, BBoxList &bblexclude) |
| template<class Type > | |
| void | DAGHCluster (GridFunction< Type, 2 > &gf, const int time, const int level, const int min_blk_width, const int max_blk_width, const int buf_width, const double min_eff, const Type thresh, BBoxList &bbl, BBoxList &bblexclude) |
| template<class Type > | |
| void | DAGHCluster (GridFunction< Type, 2 > &gf, const int time, const int level, const int min_blk_width, const int max_blk_width, const int buf_width, const double min_eff, const Type thresh, BBoxList &nest_bbl, BBoxList &bbl, BBoxList &bblexclude) |
| template<class Type > | |
| void | DAGHCluster (GridFunction< Type, 1 > &gf, const int time, const int level, const int min_blk_width, const int max_blk_width, const int buf_width, const double min_eff, const Type thresh, BBoxList &bbl, BBoxList &bblexclude) |
| template<class Type > | |
| void | DAGHCluster (GridFunction< Type, 1 > &gf, const int time, const int level, const int min_blk_width, const int max_blk_width, const int buf_width, const double min_eff, const Type thresh, BBoxList &nest_bbl, BBoxList &bbl, BBoxList &bblexclude) |
The Cluster Routines.
| void Cluster | ( | GridData< short, 3 > & | flag, | |
| BBoxList & | bblexclude, | |||
| double | Efficiency, | |||
| int | MinWidth, | |||
| int | MaxWidth, | |||
| int | BufferWidth, | |||
| BBoxList & | Result | |||
| ) | [inline] |
| void Cluster | ( | GridData< short, 2 > & | flag, | |
| BBoxList & | bblexclude, | |||
| double | Efficiency, | |||
| int | MinWidth, | |||
| int | MaxWidth, | |||
| int | BufferWidth, | |||
| BBoxList & | Result | |||
| ) | [inline] |
A 3D interface to the recursive clustering algorithm Cluster3R().
| flag | GridData<short,3>. Flag array for clustering. | |
| bblexclude | BBoxList. Flags not considered in this region. | |
| Efficiency | double. | |
| MinWidth | int. | |
| MaxWidth | int. | |
| BufferWidth | int. | |
| Result | BBoxList. Result is returned in here |
| void Cluster | ( | GridData< short, 1 > & | flag, | |
| BBoxList & | bblexclude, | |||
| double | Efficiency, | |||
| int | MinWidth, | |||
| int | MaxWidth, | |||
| int | BufferWidth, | |||
| BBoxList & | result | |||
| ) | [inline] |
Clusters a grid function flag into a list of bounding boxes result.
Assume flag is a 1D real array with values of 0.0 or 1.0 for flag or no flag.
| flag | GridData<short,1>. Array of points to cluster | |
| bblexclude | BBoxList. Flags not considered in this region. | |
| Efficiency | double. | |
| MinWidth | int. | |
| MaxWidth | int. | |
| BufferWidth | int. | |
| result | BBoxList. The resulting BBoxList of the clustering algorithm |
References Bucket< Type >::add(), add(), Bucket< Type >::first(), for_1, Bucket< Type >::next(), and BBox::upper().
| void Cluster | ( | GridData< short, dim > & | flag, | |
| BBoxList & | bblexclude, | |||
| double | Efficiency, | |||
| int | MinWidth, | |||
| int | MaxWidth, | |||
| int | BufferWidth, | |||
| BBoxList & | Result | |||
| ) | [inline] |
Referenced by DAGHCluster().
| void DAGHCluster | ( | GridFunction< Type, 1 > & | gf, | |
| const int | time, | |||
| const int | level, | |||
| const int | min_blk_width, | |||
| const int | max_blk_width, | |||
| const int | buf_width, | |||
| const double | min_eff, | |||
| const Type | thresh, | |||
| BBoxList & | nest_bbl, | |||
| BBoxList & | bbl, | |||
| BBoxList & | bblexclude | |||
| ) | [inline] |
| void DAGHCluster | ( | GridFunction< Type, 1 > & | gf, | |
| const int | time, | |||
| const int | level, | |||
| const int | min_blk_width, | |||
| const int | max_blk_width, | |||
| const int | buf_width, | |||
| const double | min_eff, | |||
| const Type | thresh, | |||
| BBoxList & | bbl, | |||
| BBoxList & | bblexclude | |||
| ) | [inline] |
| void DAGHCluster | ( | GridFunction< Type, 2 > & | gf, | |
| const int | time, | |||
| const int | level, | |||
| const int | min_blk_width, | |||
| const int | max_blk_width, | |||
| const int | buf_width, | |||
| const double | min_eff, | |||
| const Type | thresh, | |||
| BBoxList & | nest_bbl, | |||
| BBoxList & | bbl, | |||
| BBoxList & | bblexclude | |||
| ) | [inline] |
| void DAGHCluster | ( | GridFunction< Type, 2 > & | gf, | |
| const int | time, | |||
| const int | level, | |||
| const int | min_blk_width, | |||
| const int | max_blk_width, | |||
| const int | buf_width, | |||
| const double | min_eff, | |||
| const Type | thresh, | |||
| BBoxList & | bbl, | |||
| BBoxList & | bblexclude | |||
| ) | [inline] |
| void DAGHCluster | ( | GridFunction< Type, 3 > & | gf, | |
| const int | time, | |||
| const int | level, | |||
| const int | min_blk_width, | |||
| const int | max_blk_width, | |||
| const int | buf_width, | |||
| const double | min_eff, | |||
| const Type | thresh, | |||
| BBoxList & | nest_bbl, | |||
| BBoxList & | bbl, | |||
| BBoxList & | bblexclude | |||
| ) | [inline] |
| void DAGHCluster | ( | GridFunction< Type, 3 > & | gf, | |
| const int | time, | |||
| const int | level, | |||
| const int | min_blk_width, | |||
| const int | max_blk_width, | |||
| const int | buf_width, | |||
| const double | min_eff, | |||
| const Type | thresh, | |||
| BBoxList & | bbl, | |||
| BBoxList & | bblexclude | |||
| ) | [inline] |
| void DAGHCluster | ( | GridFunction< Type, dim > & | gf, | |
| const int | time, | |||
| const int | level, | |||
| const int | min_blk_width, | |||
| const int | max_blk_width, | |||
| const int | buf_width, | |||
| const double | min_eff, | |||
| const Type | thresh, | |||
| BBoxList & | nest_bbl, | |||
| BBoxList & | bbl, | |||
| BBoxList & | bblexclude | |||
| ) | [inline] |
| void DAGHCluster | ( | GridFunction< Type, dim > & | gf, | |
| const int | time, | |||
| const int | level, | |||
| const int | min_blk_width, | |||
| const int | max_blk_width, | |||
| const int | buf_width, | |||
| const double | min_eff, | |||
| const Type | thresh, | |||
| BBoxList & | bbl, | |||
| BBoxList & | bblexclude | |||
| ) | [inline] |
1.6.3