Documentation ¶
Index ¶
- Constants
- func CalcClusteringDiam(collection []clustering.Cluster, pointDistAlgo clustering.PointDistance) (diam float64)
- func CalcClusteringNoise(collection []clustering.Cluster, pointDistAlgo clustering.PointDistance) (noise float64, center clustering.Point)
- func CloneDeltaPoint(other clustering.Point) (point *deltaPoint)
- func GenerateInterfaceSliceFromDeltaSlice(points []*deltaPoint) []clustering.Point
- func NewDeltaPoint(dimension int) (point *deltaPoint)
- func NewHalfCluster(name string, cluster clustering.Cluster, distAlgo clustering.PointDistance) (obj *halfCluster)
- func NewWaterConsumptionLearner(k int, epsilon float64, p, sec, overlap int) (learner *waterConsumptionLearner)
Constants ¶
const ( MAX_BUCKET_SIZE = 512 CUTOUTERROR = "Cut out failed." DISTANCE_MATRIX_INT_SCALING_FACTOR = 128 CLUSTER_DB_TABLE_NAME = "multiDimCluster" CLUSTERING_DECAY_HORIZON = 600 )
Variables ¶
This section is empty.
Functions ¶
func CalcClusteringDiam ¶
func CalcClusteringDiam(collection []clustering.Cluster, pointDistAlgo clustering.PointDistance) (diam float64)
Calculates the mean diameter of the clustering collection for the given clustering.PointDistance measure. @return float64 the mean diameter of the clusters in the collection
func CalcClusteringNoise ¶
func CalcClusteringNoise(collection []clustering.Cluster, pointDistAlgo clustering.PointDistance) (noise float64, center clustering.Point)
Calculates a noise value for the clustering collection which is the mean distance between each cluster's centroid and the collection center weighted by the height of the cluster. @return float64 a weighted mean distance between centroids and center
func CloneDeltaPoint ¶
func CloneDeltaPoint(other clustering.Point) (point *deltaPoint)
func GenerateInterfaceSliceFromDeltaSlice ¶
func GenerateInterfaceSliceFromDeltaSlice(points []*deltaPoint) []clustering.Point
Transforms []*deltaPoint to []clustering.Point by creating a new slice of the generic interface type and appendign the deltaPoint pointers to it. This method should be used when a cast from a slice with interface instantiations to a slice of interface is required (e.g. when clustering a slice of []*deltaPoint)
func NewDeltaPoint ¶
func NewDeltaPoint(dimension int) (point *deltaPoint)
Constructs a new deltaPoint with a one-dimension underlying GenericPoint
func NewHalfCluster ¶
func NewHalfCluster(name string, cluster clustering.Cluster, distAlgo clustering.PointDistance) (obj *halfCluster)
Types ¶
This section is empty.