Heavy

schrodinger.montecarlo.Weighted$.Heavy
final case class Heavy[W, A](weight: W, density: W, value: A) extends Weighted[W, A]

Attributes

Source:
Weighted.scala
Graph
Supertypes
class Weighted[W, A]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def isWeightless: false

Attributes

Source:
Weighted.scala

Attributes

Source:
Weighted.scala

Inherited methods

final def ===[B >: A](that: Weighted[W, B])(using evidence$3: Eq[B], Eq[W]): Boolean

Attributes

Inherited from:
Weighted
Source:
Weighted.scala
final def imap[B](f: A => B)(g: B => A): Weighted[W, B]

Attributes

Inherited from:
Weighted
Source:
Weighted.scala
final def importance(f: A => W)(using Semifield[W], Eq[W]): Weighted[W, A]

Attributes

Inherited from:
Weighted
Source:
Weighted.scala
final def importanceA[F[_]](f: A => F[W])(using evidence$1: Applicative[F], Semifield[W], Eq[W]): F[Weighted[W, A]]

Attributes

Inherited from:
Weighted
Source:
Weighted.scala
final def isHeavy: Boolean

Attributes

Inherited from:
Weighted
Source:
Weighted.scala
final def product[B](b: Weighted[W, B])(using Semiring[W], Eq[W]): Weighted[W, (A, B)]

Attributes

Inherited from:
Weighted
Source:
Weighted.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def show[B >: A](using evidence$2: Show[B], Show[W]): String

Attributes

Inherited from:
Weighted
Source:
Weighted.scala
final override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Weighted -> Any
Inherited from:
Weighted
Source:
Weighted.scala