Weightless

schrodinger.montecarlo.Weighted$.Weightless
See theWeightless companion object
final case class Weightless[W, A](weight: W) extends Weighted[W, A]

Attributes

Companion:
object
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 density: W

Attributes

Source:
Weighted.scala
def isWeightless: true

Attributes

Source:
Weighted.scala
def valueOption: None.type

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 normalize(z: W)(using MultiplicativeGroup[W]): Weighted[W, A]

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