Kinetica C# API  Version 6.1.0.0
AggregateKMeans.cs
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 
7 using System.Collections.Generic;
8 
9 
10 
11 namespace kinetica
12 {
13 
28  {
29 
55  public struct Options
56  {
57 
60  public const string WHITEN = "whiten";
61 
64  public const string MAX_ITERS = "max_iters";
65 
69  public const string NUM_TRIES = "num_tries";
70  } // end struct Options
71 
72 
75  public string table_name { get; set; }
76 
81  public IList<string> column_names { get; set; } = new List<string>();
82 
85  public int k { get; set; }
86 
89  public double tolerance { get; set; }
90 
114  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
115 
116 
120 
160  IList<string> column_names,
161  int k,
162  double tolerance,
163  IDictionary<string, string> options = null)
164  {
165  this.table_name = table_name ?? "";
166  this.column_names = column_names ?? new List<string>();
167  this.k = k;
168  this.tolerance = tolerance;
169  this.options = options ?? new Dictionary<string, string>();
170  } // end constructor
171 
172  } // end class AggregateKMeansRequest
173 
174 
175 
180  {
181 
183  public IList<IList<double>> means { get; set; } = new List<IList<double>>();
184 
187  public IList<long> counts { get; set; } = new List<long>();
188 
191  public IList<double> rms_dists { get; set; } = new List<double>();
192 
195  public long count { get; set; }
196 
199  public double rms_dist { get; set; }
200 
203  public double tolerance { get; set; }
204 
207  public int num_iters { get; set; }
208 
209  } // end class AggregateKMeansResponse
210 
211 
212 
213 
214 } // end namespace kinetica
A set of results returned by Kinetica.aggregateKMeans(string,IList<string>,int,double,IDictionary<string, string>).
int k
The number of mean points to be determined by the algorithm.
IList< string > column_names
List of column names on which the operation would be performed.
AggregateKMeansRequest()
Constructs an AggregateKMeansRequest object with default parameters.
const string WHITEN
When set to 1 each of the columns is first normalized by its stdv - default is not to whiten...
AggregateKMeansRequest(string table_name, IList< string > column_names, int k, double tolerance, IDictionary< string, string > options=null)
Constructs an AggregateKMeansRequest object with the specified parameters.
const string MAX_ITERS
Number of times to try to hit the tolerance limit before giving up - default is 10.
const string NUM_TRIES
Number of times to run the k-means algorithm with a different randomly selected starting points - hel...
IDictionary< string, string > options
Optional parameters.
string table_name
Name of the table on which the operation will be performed.
A set of parameters for Kinetica.aggregateKMeans(string,IList<string>,int,double,IDictionary<string, string>).
double tolerance
Stop iterating when the distances between successive points is less than the given tolerance...
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14