/// <summary> /// Creates a new <see cref="MeanShift"/> algorithm. /// </summary> /// /// <param name="dimension">The dimension of the samples to be clustered.</param> /// <param name="bandwidth">The bandwidth (also known as radius) to consider around samples.</param> /// <param name="kernel">The density kernel function to use.</param> /// public MeanShift(int dimension, IRadiallySymmetricKernel kernel, double bandwidth) { this.dimension = dimension; this.kernel = kernel; this.Bandwidth = bandwidth; this.distance = Accord.Math.Distance.SquareEuclidean; }
/// <summary> /// Creates a new <see cref="MeanShift"/> algorithm. /// </summary> /// /// <param name="dimension">The dimension of the samples to be clustered.</param> /// <param name="bandwidth">The bandwidth (also known as radius) to consider around samples.</param> /// <param name="kernel">The density kernel function to use.</param> /// public MeanShift(int dimension, IRadiallySymmetricKernel kernel, double bandwidth) { this.dimension = dimension; this.kernel = kernel; this.Bandwidth = bandwidth; this.distance = Accord.Math.Distance.Euclidean; this.UseParallelProcessing = true; this.MaxIterations = 100; this.Tolerance = 1e-3; }
/// <summary> /// Creates a new <see cref="MeanShift"/> algorithm. /// </summary> /// /// <param name="bandwidth">The bandwidth (also known as radius) to consider around samples.</param> /// <param name="kernel">The density kernel function to use.</param> /// public MeanShift(IRadiallySymmetricKernel kernel, double bandwidth) { this.kernel = kernel; this.Bandwidth = bandwidth; this.Distance = new Accord.Math.Distances.Euclidean(); this.ParallelOptions = new ParallelOptions(); this.MaxIterations = 100; this.Tolerance = 1e-3; this.ComputeLabels = true; this.ComputeProportions = true; }
/// <summary> /// Creates a new <see cref="MeanShift"/> algorithm. /// </summary> /// public MeanShift() { this.kernel = new UniformKernel(); this.Bandwidth = 1.0; this.Distance = new Accord.Math.Distances.Euclidean(); this.ParallelOptions = new ParallelOptions(); this.MaxIterations = 100; this.Tolerance = 1e-3; this.ComputeLabels = true; this.ComputeProportions = true; }
public MeanShift(int dimension, IRadiallySymmetricKernel kernel, double bandwidth) : this(kernel, bandwidth) { }