learner

package
v0.0.0-...-5935107 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
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)

func NewWaterConsumptionLearner

func NewWaterConsumptionLearner(k int, epsilon float64, p, sec, overlap int) (learner *waterConsumptionLearner)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL