final case class ExamplesProperty[T](examples: List[T] = List.empty[T], totalExamples: BigInt = 0, nextSample: BigInt = 0, sampleW: Double = 0) extends Product with Serializable
Used to track examples across atomic values collected from schemas.
- examples
a list of example values
- totalExamples
the total number of examples seen so far
- nextSample
the bounds on the next sample to consider
- sampleW
weight to determine the next sample
- Alphabetic
- By Inheritance
- ExamplesProperty
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ExamplesProperty(examples: List[T] = List.empty[T], totalExamples: BigInt = 0, nextSample: BigInt = 0, sampleW: Double = 0)
Create a new set of examples
Create a new set of examples
- examples
a list of example values
- totalExamples
the total number of examples seen so far
- nextSample
the bounds on the next sample to consider
- sampleW
weight to determine the next sample
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val examples: List[T]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def merge(other: ExamplesProperty[T])(implicit p: JsonoidParams): ExamplesProperty[T]
Combine two sets of examples by merging according to each weight.
Combine two sets of examples by merging according to each weight.
- other
the other set of examples to merge
- returns
a merged set of examples
- Annotations
- @SuppressWarnings()
- def mergeValue(value: T)(implicit p: JsonoidParams): ExamplesProperty[T]
Add a new example to the set of examples.
Add a new example to the set of examples.
- value
the new example to merge
- returns
a new set of examples containing the new example
- Annotations
- @SuppressWarnings()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nextSample: BigInt
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val sampleW: Double
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val totalExamples: BigInt
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()