Field

scalismo.common.Field
See theField companion object
trait Field[D, A] extends Point[D] => A

An image is simply a function from points to values, together with a domain on which the function is defined.

Attributes

Companion:
object
Graph
Supertypes
trait Point[D] => A
class Object
trait Matchable
class Any
Known subtypes
Self type
Field[D, A]

Members list

Concise view

Value members

Abstract methods

def domain: Domain[D]
def f: Point[D] => A

Concrete methods

def *(d: Double)(implicit scalar: Scalar[A]): Field[D, Double]
def +(that: Field[D, A])(implicit scalar: Scalar[A]): Field[D, A]
def -(that: Field[D, A])(implicit scalar: Scalar[A]): Field[D, A]
def :*(that: Field[D, A])(implicit scalar: Scalar[A]): Field[D, A]
override def andThen[B](g: A => B): Field[D, B]

Attributes

Definition Classes
Function1
override def apply(x: Point[D]): A

The value of the image at a given point. if an image is accessed outside of its definition, an exception is thrown

The value of the image at a given point. if an image is accessed outside of its definition, an exception is thrown

Attributes

Definition Classes
Function1
def compose(t: Point[D] => Point[D]): Field[D, A]
def discretize[DDomain <: (DiscreteDomain)](domain: DDomain[D], outsideValue: A): DiscreteField[D, DDomain, A]
def isDefinedAt(pt: Point[D]): Boolean

True if the image is defined at the given point

True if the image is defined at the given point

Attributes

def liftValues: Field[D, Option[A]]

Lifts the definition of the value function such that it is defined everywhere, but yields none if the value is outside of the domain

Lifts the definition of the value function such that it is defined everywhere, but yields none if the value is outside of the domain

Attributes

Inherited methods

def compose[A](g: A => Point[D]): A => R

Attributes

Inherited from:
Function1
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
Function1 -> Any
Inherited from:
Function1