Gaussian

com.phasmidsoftware.number.core.misc.Gaussian
case class Gaussian(mu: Double, sigma: Double) extends FuzzyBase

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class FuzzyBase
trait Fuzzy
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type PairFunction = (Double, Double) => Double

Attributes

Inherited from:
FuzzyBase

Value members

Concrete methods

def combine(o: Fuzzy, f: PairFunction, df_dx: PairFunction, df_dy: PairFunction): Fuzzy

Value parameters

df_dx

the derivative of f with respect to x.

df_dy

the derivative of f with respect to y.

f

a function(x,y) which

o

another Fuzzy which is to be added to this Fuzzy

Attributes

Returns

a new Fuzzy composed from this and o

override def map2(f: DiFunc[Double])(delta2: Double): Fuzzy

Method to map this Fuzzy object with a 2-arity DiFunc

Method to map this Fuzzy object with a 2-arity DiFunc

Value parameters

delta

the fuzziness of the second parameter

f

the function to apply

Attributes

Returns

the result

Definition Classes
def newFuzzy(x: Double, delta: Double): Fuzzy
def parseString(str: String): Option[Fuzzy]
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
Any

Inherited methods

def *(that: Long): Fuzzy

Attributes

Inherited from:
FuzzyBase
def *(that: Fuzzy): Fuzzy

Attributes

Inherited from:
FuzzyBase
def +(that: Long): Fuzzy

Attributes

Inherited from:
FuzzyBase
def +(that: Fuzzy): Fuzzy

Attributes

Inherited from:
FuzzyBase
def -(that: Long): Fuzzy

Attributes

Inherited from:
FuzzyBase
def -(that: Fuzzy): Fuzzy

Attributes

Inherited from:
FuzzyBase
def /(that: Long): Fuzzy

Attributes

Inherited from:
FuzzyBase
def /(that: Fuzzy): Fuzzy

Attributes

Inherited from:
FuzzyBase
def compare(x: Fuzzy, y: Fuzzy): Int

Returns an integer whose sign communicates how x compares to y.

Returns an integer whose sign communicates how x compares to y.

The result sign has the following meaning:

  • negative if x < y
  • positive if x > y
  • 0 otherwise (if x == y or, for whatever reason, x cannot be distinguished from y)

Attributes

Inherited from:
Fuzzy
def div(x: Fuzzy, y: Fuzzy): Fuzzy

Attributes

Inherited from:
FuzzyBase
def fromInt(x: Int): Exact

Attributes

Inherited from:
FuzzyBase
def inverseCumulativeProbability(p: Double): Try[Double]

Attributes

Inherited from:
FuzzyBase
def map(f: DiFunc[Double]): Fuzzy

Method to map this Fuzzy object with a 1-arity DiFunc

Method to map this Fuzzy object with a 1-arity DiFunc

Value parameters

f

the function to apply

Attributes

Returns

the result

Inherited from:
FuzzyBase
def minus(x: Fuzzy, y: Fuzzy): Fuzzy

Attributes

Inherited from:
FuzzyBase
def negate(x: Fuzzy): Fuzzy

Attributes

Inherited from:
FuzzyBase
def plus(x: Fuzzy, y: Fuzzy): Fuzzy

Attributes

Inherited from:
FuzzyBase
def power(x: Fuzzy): Fuzzy

Attributes

Inherited from:
FuzzyBase
def power(x: Double): Fuzzy

Attributes

Inherited from:
FuzzyBase
def power(x: Int): Fuzzy

Attributes

Inherited from:
FuzzyBase
def powerExact(x: Fuzzy, y: Int): Fuzzy

Attributes

Inherited from:
FuzzyBase
def prob(y: Double, delta: Double): Try[Double]

Invokes the probability function of the @link{AbstractRealDistribution} but the parameters are slightly different.

Invokes the probability function of the @link{AbstractRealDistribution} but the parameters are slightly different.

Value parameters

delta

the delta on either side which will determine the limits

x

the value at which we want to measure the probability

Attributes

Returns

the probability that x-delta

Inherited from:
FuzzyBase
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
def times(x: Fuzzy, y: Fuzzy): Fuzzy

Attributes

Inherited from:
FuzzyBase
def toDouble(x: Fuzzy): Double

Attributes

Inherited from:
FuzzyBase
def toFloat(x: Fuzzy): Float

Attributes

Inherited from:
FuzzyBase
def toInt(x: Fuzzy): Int

Attributes

Inherited from:
FuzzyBase
def toLong(x: Fuzzy): Long

Attributes

Inherited from:
FuzzyBase

Attributes

Inherited from:
FuzzyBase
def ∧(that: Int): Fuzzy

Attributes

Inherited from:
FuzzyBase

Inherited fields

lazy val fuzz: Double

Attributes

Returns

some measure of this Fuzzy object's fuzziness (actual domain depends on the type of Fuzzy)

Inherited from:
FuzzyBase
lazy val get: Double

Attributes

Returns

the nominal value of this Fuzzy object

Inherited from:
FuzzyBase
lazy val getRealDistribution: RealDistribution

Attributes

Returns

the underlying @link{RealDistribution} of this Fuzzy object

Inherited from:
FuzzyBase
lazy val negate: Fuzzy

Attributes

Inherited from:
FuzzyBase