package mlgenerator
- Alphabetic
- Public
- All
Type Members
- case class KMeansDataGen(numRows: Int, numCols: Int, input: Option[String] = None, output: Option[String], saveMode: String, k: Int, scaling: Double, numPartitions: Int) extends Workload with Product with Serializable
- case class LinearRegressionDataGen(numRows: Int, numCols: Int, input: Option[String] = None, output: Option[String], saveMode: String, eps: Double, intercepts: Double, numPartitions: Int) extends Workload with Product with Serializable
-
class
Random16 extends AnyRef
This class implements a 128-bit linear congruential generator.
This class implements a 128-bit linear congruential generator. Specifically, if X0 is the most recently issued 128-bit random number (or a seed of 0 if no random number has already been generated, the next number to be generated, X1, is equal to: X1 = (a * X0 + c) mod 2**128 where a is 47026247687942121848144207491837523525 or 0x2360ed051fc65da44385df649fccf645 and c is 98910279301475397889117759788405497857 or 0x4a696d47726179524950202020202001 The coefficient "a" is suggested by: Pierre L'Ecuyer, "Tables of linear congruential generators of different sizes and good lattice structure", Mathematics of Computation, 68 pp. 249 - 260 (1999) http://www.ams.org/mcom/1999-68-225/S0025-5718-99-00996-5/S0025-5718-99-00996-5.pdf The constant "c" meets the simple suggestion by the same reference that it be odd.
There is also a facility for quickly advancing the state of the generator by a fixed number of steps - this facilitates parallel generation.
This is based on 1.0 of rand16.c from Chris Nyberg <chris.nyberg@ordinal.com>.
-
class
Unsigned16 extends AnyRef
An unsigned 16 byte integer class that supports addition, multiplication, and left shifts.
Value Members
- object KMeansDataGen extends WorkloadDefaults with Serializable
- object LinearRegressionDataGen extends WorkloadDefaults with Serializable