Class/Object

cogx.cogmath.algebra.real

Dyad2D

Related Docs: object Dyad2D | package real

Permalink

class Dyad2D extends Vector with Tensor

A two-dimensional dyad.

The terminology of "stickness" and "ballness" is described in "An efficient method for tensor voting using steerable filters," Franken et al.

Since dyads in Cog are symmetric matrices, we implement them as vectors for efficiency. The matrix representation:

xx   xy
yx   yy

is therefore represented internally as a vector like this:

xx   xy   yy
Linear Supertypes
Vector, Tensor, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Dyad2D
  2. Vector
  3. Tensor
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Dyad2D()

    Permalink

    Create a 0 dyad.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !===(v: Vector): Boolean

    Permalink
    Definition Classes
    Vector
  3. def !~==(v: Vector): Boolean

    Permalink
    Definition Classes
    Vector
  4. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  5. def *(f: Float): Dyad2D

    Permalink
    Definition Classes
    Dyad2DVector
  6. def *(that: Dyad2D): Dyad2D

    Permalink
  7. def *(that: Matrix): Matrix

    Permalink
    Definition Classes
    Vector
  8. def *=(s: Float): Unit

    Permalink
    Definition Classes
    Vector
  9. def +(f: Float): Dyad2D

    Permalink
    Definition Classes
    Dyad2DVector
  10. def +(that: Dyad2D): Dyad2D

    Permalink
  11. def +(v: Vector): Vector

    Permalink
    Definition Classes
    Vector
  12. def +=(v: Vector): Unit

    Permalink
    Definition Classes
    Vector
  13. def +=(s: Float): Unit

    Permalink
    Definition Classes
    Vector
  14. def -(f: Float): Dyad2D

    Permalink
    Definition Classes
    Dyad2DVector
  15. def -(that: Dyad2D): Dyad2D

    Permalink
  16. def -(v: Vector): Vector

    Permalink
    Definition Classes
    Vector
  17. def -(): Vector

    Permalink
    Definition Classes
    Vector
  18. def -=(v: Vector): Unit

    Permalink
    Definition Classes
    Vector
  19. def -=(s: Float): Unit

    Permalink
    Definition Classes
    Vector
  20. def /(f: Float): Dyad2D

    Permalink
    Definition Classes
    Dyad2DVector
  21. def /(that: Dyad2D): Dyad2D

    Permalink
  22. def /=(s: Float): Unit

    Permalink
    Definition Classes
    Vector
  23. def :*(v: Vector): Vector

    Permalink
    Definition Classes
    Vector
  24. def :*=(v: Vector): Unit

    Permalink
    Definition Classes
    Vector
  25. def :/(v: Vector): Vector

    Permalink
    Definition Classes
    Vector
  26. def :/=(v: Vector): Unit

    Permalink
    Definition Classes
    Vector
  27. def :=(v: Vector): Unit

    Permalink
    Definition Classes
    Vector
  28. def :=(s: Float): Unit

    Permalink
    Definition Classes
    Vector
  29. def :\(v: Vector): Vector

    Permalink
    Definition Classes
    Vector
  30. def :\=(v: Vector): Unit

    Permalink
    Definition Classes
    Vector
  31. def <(v: Float): Vector

    Permalink
    Definition Classes
    Vector
  32. def <=(v: Float): Vector

    Permalink
    Definition Classes
    Vector
  33. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  34. def ===(v: Vector): Boolean

    Permalink
    Definition Classes
    Vector
  35. def >(v: Float): Vector

    Permalink
    Definition Classes
    Vector
  36. def >=(v: Float): Vector

    Permalink
    Definition Classes
    Vector
  37. def abs: Vector

    Permalink
    Definition Classes
    Vector
  38. def apply(index: Int): Float

    Permalink
    Definition Classes
    Vector
  39. def argmax: Int

    Permalink
    Definition Classes
    Vector
  40. final def asArray: Array[Float]

    Permalink

    View this Vector as an array with full read and write access.

    View this Vector as an array with full read and write access.

    Definition Classes
    Vector
  41. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  42. def ballness: Float

    Permalink

    The "ballness" of the dyad.

    The "ballness" of the dyad. Not sure if neg can result, so clip.

  43. def canEqual(other: Any): Boolean

    Permalink

    Helper for equals.

    Helper for equals.

    Definition Classes
    Tensor
  44. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def concat(that: Vector): Vector

    Permalink
    Definition Classes
    Vector
  46. def copy: Vector

    Permalink
    Definition Classes
    Vector
  47. def dot(that: Vector): Float

    Permalink

    Compute the dot product of "this" and "that".

    Compute the dot product of "this" and "that".

    Definition Classes
    Vector
  48. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  49. def equals(other: Any): Boolean

    Permalink

    Test "this" and "other" for deep equality.

    Test "this" and "other" for deep equality. Allows "==" to work.

    Definition Classes
    Tensor → AnyRef → Any
  50. def expand(bigSize: Int, borderFill: Boolean): Vector

    Permalink

    Expand the vector, optionally extending the border into the expanded region.

    Expand the vector, optionally extending the border into the expanded region. This operation is a key part of the FFT. The new vector is of size "bigSize" element (0) of this is anchored at (0) in the larger vector. If "borderFill" is true, then the two edges of the vector are extended evenly in all directions, as though the bigger vector were actually a loop with opposite edges touching.

    Definition Classes
    Vector
  51. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  52. def flip: Vector

    Permalink

    Reverses the order of the elements in this

    Reverses the order of the elements in this

    Definition Classes
    Vector
  53. def fold(initValue: Float)(f: (Float, Float) ⇒ Float): Float

    Permalink
    Definition Classes
    Vector
  54. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  55. def getData: Array[Float]

    Permalink

    Get the data in the tensor, flattened to a linear array.

    Get the data in the tensor, flattened to a linear array.

    Attributes
    protected[cogx]
    Definition Classes
    Vector
  56. def hashCode(): Int

    Permalink

    Required because of overriding equals.

    Required because of overriding equals.

    Definition Classes
    Tensor → AnyRef → Any
  57. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  58. def length: Int

    Permalink

    The number of "numbers" held in the tensor.

    The number of "numbers" held in the tensor.

    Definition Classes
    Tensor
  59. def map(f: (Float) ⇒ Float): Vector

    Permalink
    Definition Classes
    Vector
  60. def mapSelf(f: (Float) ⇒ Float): Unit

    Permalink
    Definition Classes
    Vector
  61. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  62. def normL1: Float

    Permalink
    Definition Classes
    Vector
  63. def normL2: Float

    Permalink
    Definition Classes
    Vector
  64. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  65. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  66. def orientation: Float

    Permalink

    The orientation of the dyad in radians.

  67. def outerProduct(that: Vector): Matrix

    Permalink
    Definition Classes
    Vector
  68. def print: Unit

    Permalink
    Definition Classes
    Vector
  69. def randomize: Vector

    Permalink
    Definition Classes
    Vector
  70. def read(index: Int): Float

    Permalink

    Tensor accessor.

    Tensor accessor.

    Definition Classes
    VectorTensor
  71. def reciprocal: Dyad2D

    Permalink
    Definition Classes
    Dyad2DVector
  72. def rectangularize: Matrix

    Permalink
    Definition Classes
    Vector
  73. def rectify: Vector

    Permalink
    Definition Classes
    Vector
  74. def reduce(f: (Float, Float) ⇒ Float): Float

    Permalink

    Reduce a Vector to a scalar using "f".

    Reduce a Vector to a scalar using "f".

    Definition Classes
    Vector
  75. def rotate(angle: Float): Dyad2D

    Permalink

    Rotate the dyad by "angle", expressed in radians.

  76. def sgn: Vector

    Permalink
    Definition Classes
    Vector
  77. def shape(rows: Int, columns: Int): Matrix

    Permalink
    Definition Classes
    Vector
  78. def shape: geometry.Shape

    Permalink

    Shape of the vector.

    Shape of the vector.

    Definition Classes
    VectorTensor
  79. def shiftCyclic(delta: Int): Vector

    Permalink

    Rotates the elements of a vector, wrapping around the left side to the right side.

    Rotates the elements of a vector, wrapping around the left side to the right side.

    The rotation is specified by "delta"; for example, delta=2 would cause the element at location (0) to be moved to location (2). Returns the rotated vector. This was added in support of the LowPassFunction kernel, and because Matrix has a similar method. Not currently tested. -RJC XXX

    Definition Classes
    Vector
  80. def size: Int

    Permalink
    Definition Classes
    Vector
  81. def sort: Vector

    Permalink

    Sort vector elements in ascending order (creates new Vector, "this" unchanged).

    Sort vector elements in ascending order (creates new Vector, "this" unchanged).

    Definition Classes
    Vector
  82. def stickness: Float

    Permalink

    The "stickness" of the dyad.

  83. def subvector(indexRange: Range): Vector

    Permalink
    Definition Classes
    Vector
  84. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  85. def toArray: Array[Float]

    Permalink

    Convert Vector to an array of doubles (copy).

    Convert Vector to an array of doubles (copy).

    Definition Classes
    Vector
  86. def toString(): String

    Permalink
    Definition Classes
    Vector → AnyRef → Any
  87. def transpose: Matrix

    Permalink
    Definition Classes
    Vector
  88. def trim(smallSize: Int): Vector

    Permalink

    Trim "this" to a Vector of length smallSize.

    Trim "this" to a Vector of length smallSize.

    Definition Classes
    Vector
  89. def unary_-(): Dyad2D

    Permalink
    Definition Classes
    Dyad2DVector
  90. def update(index: Int, value: Float): Unit

    Permalink
    Definition Classes
    Vector
  91. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  94. def xx: Float

    Permalink

    The "xx" component of the dyad (see class description).

  95. def xy: Float

    Permalink

    The "xy" component of the dyad (see class description).

  96. def yy: Float

    Permalink

    The "yy" component of the dyad (see class description).

  97. def ~==(v: Vector): Boolean

    Permalink
    Definition Classes
    Vector

Inherited from Vector

Inherited from Tensor

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped