Packages

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExamplesProperty
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. val examples: List[T]
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. 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()
  12. 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()
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. val nextSample: BigInt
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. val sampleW: Double
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. val totalExamples: BigInt
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped