Packages

class HMatrix5[T] extends Error

The HMatrix5 class is a simple implementation of a 5-dimensional hypermatrix. The first two dimensions must be fixed and known, while the third, fourth and fifth dimensions may be dynamically allocated by the user. ----------------------------------------------------------------------------- For Bayes classifier the convention is as follows: dimension 1: possible values for class c (e.g., k = 2 => 0, 1 ) dimension 2: indicator for first feature x_j (e.g., n = 3 => x_0, x_1, x_3) dimension 3: possible values for x_j OR indicator for second feature y_j dimension 4: possible values for x_j's 1st parent OR possible values for x_j dimension 5: possible values for x_j's 2st parent OR possible values for y_j -----------------------------------------------------------------------------

Linear Supertypes
Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HMatrix5
  2. Error
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HMatrix5(dim1: Int, dim2: Int, dims3: Array[Int], dims4: Array[Int], dims5: Array[Int])(implicit arg0: ClassTag[T], arg1: Numeric[T])

    Construct a 5-dimensional hypermatrix, where the 3rd, 4th and 5th dimensions vary only with the 2nd dimension.

    Construct a 5-dimensional hypermatrix, where the 3rd, 4th and 5th dimensions vary only with the 2nd dimension.

    dim1

    size of the 1st dimension of the hypermatrix

    dim2

    size of the 2nd dimension of the hypermatrix

    dims3

    array of sizes of the 3rd dimension of the hypermatrix

    dims4

    array of sizes of the 4th dimension of the hypermatrix

    dims5

    array of sizes of the 5th dimension of the hypermatrix

  2. new HMatrix5(dim1: Int, dim2: Int, dim3: Int, dims4: Array[Int], dims5: Array[Int])(implicit arg0: ClassTag[T], arg1: Numeric[T])

    Construct a 5-dimensional hypermatrix, where the 3rd dimension is fixed as well, and the 4th varies with 2nd and 5th dimensions varies the 3rd dimension.

    Construct a 5-dimensional hypermatrix, where the 3rd dimension is fixed as well, and the 4th varies with 2nd and 5th dimensions varies the 3rd dimension.

    dim1

    size of the 1st dimension of the hypermatrix

    dim2

    size of the 2nd dimension of the hypermatrix

    dim3

    size of the 3rd dimension of the hypermatrix

    dims4

    array of sizes of the 4th dimension of the hypermatrix

    dims5

    array of sizes of the 5th dimension of the hypermatrix

  3. new HMatrix5(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dims5: Array[Int])(implicit arg0: ClassTag[T], arg1: Numeric[T])

    Construct a 5-dimensional hypermatrix, where 3rd and 4th dimensions are fixed as well, and the 5th dimension varies only with the 4th dimension.

    Construct a 5-dimensional hypermatrix, where 3rd and 4th dimensions are fixed as well, and the 5th dimension varies only with the 4th dimension.

    dim1

    size of the 1st dimension of the hypermatrix

    dim2

    size of the 2nd dimension of the hypermatrix

    dim3

    size of the 3rd dimension of the hypermatrix

    dim4

    size of the 4th dimension of the hypermatrix

    dims5

    array of sizes of the 5th dimension of the hypermatrix

  4. new HMatrix5(dim1: Int, dim2: Int, dim3: Int, dim4: Int)(implicit arg0: ClassTag[T], arg1: Numeric[T])

    Construct a 5-dimensional hypermatrix, where the 3rd and 4th dimensions are fixed as well, but the 5th dimension may vary.

    Construct a 5-dimensional hypermatrix, where the 3rd and 4th dimensions are fixed as well, but the 5th dimension may vary.

    dim1

    size of the 1st dimension of the hypermatrix

    dim2

    size of the 2nd dimension of the hypermatrix

    dim3

    size of the 3rd dimension of the hypermatrix

    dim4

    size of the 4th dimension of the hypermatrix

  5. new HMatrix5(dim1: Int, dim2: Int, dim3: Int)(implicit arg0: ClassTag[T], arg1: Numeric[T])

    Construct a 5-dimensional hypermatrix, where the 3rd dimension is fixed as well, but the 4th and 5th dimensions may vary.

    Construct a 5-dimensional hypermatrix, where the 3rd dimension is fixed as well, but the 4th and 5th dimensions may vary.

    dim1

    size of the 1st dimension of the hypermatrix

    dim2

    size of the 2nd dimension of the hypermatrix

    dim3

    size of the 3rd dimension of the hypermatrix

  6. new HMatrix5(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int)(implicit arg0: ClassTag[T], arg1: Numeric[T])

    Construct a cuboidic 5-dimensional hypermatrix, where the last 3 dimensions are fixed as well.

    Construct a cuboidic 5-dimensional hypermatrix, where the last 3 dimensions are fixed as well.

    dim1

    size of the 1st dimension of the hypermatrix

    dim2

    size of the 2nd dimension of the hypermatrix

    dim3

    size of the 3rd dimension of the hypermatrix

    dim4

    size of the 4th dimension of the hypermatrix

    dim5

    size of the 5th dimension of the hypermatrix

  7. new HMatrix5(dim1: Int, dim2: Int)(implicit arg0: ClassTag[T], arg1: Numeric[T])

    dim1

    size of the 1st dimension of the hypermatrix

    dim2

    size of the 2nd dimension of the hypermatrix

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(b: HMatrix5[T]): HMatrix5[T]

    Add 'this' hypermatrix and hypermatrix 'b'.

    Add 'this' hypermatrix and hypermatrix 'b'.

    b

    the hypermatrix to add (requires 'leDimensions')

  4. def -(b: HMatrix5[T]): HMatrix5[T]

    From 'this' hypermatrix subtract hypermatrix 'b'.

    From 'this' hypermatrix subtract hypermatrix 'b'.

    b

    the hypermatrix to add (requires 'leDimensions')

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def alloc(vc3: VectoI, vc4: VectoI, vc5: VectoI): Unit

    Allocate the 3rd to 5th dimensions of the hypermatrix based on the given value counts for the dimensions.

    Allocate the 3rd to 5th dimensions of the hypermatrix based on the given value counts for the dimensions.

    vc3

    value count array giving sizes for 3rd dimension based on j

    vc4

    value count array giving sizes for 4th dimension based on j

    vc5

    value count array giving sizes for 5th dimension based on j

  7. def alloc(dims3: Array[Int], dims4: Array[Int]): Unit

    Allocate all elements of the 3rd and 4th dimensions of the hypermatrix, where the 3rd and 4th dimensions only vary with the 2nd dimension.

    Allocate all elements of the 3rd and 4th dimensions of the hypermatrix, where the 3rd and 4th dimensions only vary with the 2nd dimension.

    dims3

    array of sizes of the 3rd dimension of the hypermatrix

    dims4

    array of sizes of the 4th dimension of the hypermatrix

  8. def alloc(i: Int, j: Int, dim3: Int, dim4: Int, dim5: Int): Unit

    Allocate a 3D array for the 3rd, 4th and 5th dimensions of the hypermatrix for the given '(i, j)' cell.

    Allocate a 3D array for the 3rd, 4th and 5th dimensions of the hypermatrix for the given '(i, j)' cell.

    i

    1st dimension index of the hypermatrix

    j

    2nd dimension index of the hypermatrix

    dim3

    size of the 3rd dimension

    dim4

    size of the 4th dimension

    dim5

    size of the 5th dimension

  9. def alloc2(dims4: Array[Int], dims5: Array[Int]): Unit

    Allocate all elements of the 4th and 5th dimensions of the hypermatrix, where the 4th and 5th(?) dimensions only vary with the 2nd dimension.

    Allocate all elements of the 4th and 5th dimensions of the hypermatrix, where the 4th and 5th(?) dimensions only vary with the 2nd dimension. FIX: clean up and regualrize all the 'alloc' methods.

    dims4

    array of sizes of the 4th dimension of the hypermatrix

    dims5

    array of sizes of the 5th dimension of the hypermatrix

  10. def apply(i: Int, j: Int, k: Int, l: Int, m: Int): T

    Retrieve a single element of the hypermatrix.

    Retrieve a single element of the hypermatrix.

    i

    1st dimension index of the hypermatrix

    j

    2nd dimension index of the hypermatrix

    k

    3rd dimension index of the hypermatrix

    l

    4th dimension index of the hypermatrix

    m

    5th dimension index of the hypermatrix

  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clear(): Unit

    Clear (make null) all contents in the 3rd, 4th and 5th dimensions of the hypermatrix.

  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. val dim1: Int
  15. val dim2: Int
  16. def dim_3(i: Int, j: Int): Int

    Return the size of the 3rd dimension for the given 'i' and 'j'.

    Return the size of the 3rd dimension for the given 'i' and 'j'.

    i

    1st dimension index of the hypermatrix

    j

    2nd dimension index of the hypermatrix

  17. def dim_4(i: Int, j: Int, k: Int): Int

    Return the size of the 4th dimension for the given 'i', 'j', and 'k'.

    Return the size of the 4th dimension for the given 'i', 'j', and 'k'.

    i

    1st dimension index of the hypermatrix

    j

    2nd dimension index of the hypermatrix

    k

    3rd dimension index of the hypermatrix

  18. def dim_5(i: Int, j: Int, k: Int, l: Int): Int

    Return the size of the 5th dimension for the given 'i', 'j', 'k', and 'l'.

    Return the size of the 5th dimension for the given 'i', 'j', 'k', and 'l'.

    i

    1st dimension index of the hypermatrix

    j

    2nd dimension index of the hypermatrix

    k

    3rd dimension index of the hypermatrix

    l

    4rd dimension index of the hypermatrix

  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  21. var fString: String

    Format string used for printing vector values (change using 'setFormat')

    Format string used for printing vector values (change using 'setFormat')

    Attributes
    protected
  22. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def flaw(method: String, message: String): Unit

    Show the flaw by printing the error message.

    Show the flaw by printing the error message.

    method

    the method where the error occurred

    message

    the error message

    Definition Classes
    Error
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def leDimensions(b: HMatrix5[T]): Boolean

    Check whether the dimensions of 'this' hypermatrix are less than or equal to 'le' those of the other hypermatrix 'b'.

    Check whether the dimensions of 'this' hypermatrix are less than or equal to 'le' those of the other hypermatrix 'b'.

    b

    the other hypermatrix

  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  31. val nu: Numeric[T]

    Import Numeric evidence (gets nu val from superclass)

  32. def set(x: T): Unit

    Set all the hypermatrix element values to 'x'.

    Set all the hypermatrix element values to 'x'.

    x

    the value to set all elements to

  33. def setFormat(newFormat: String): Unit

    Set the format to the 'newFormat'.

    Set the format to the 'newFormat'.

    newFormat

    the new format string

  34. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String

    Convert 'this' hypermatrix to a string.

    Convert 'this' hypermatrix to a string.

    Definition Classes
    HMatrix5 → AnyRef → Any
  36. def update(i: Int, j: Int, k: Int, l: Int, m: Int, v: T): Unit

    Update a single element of the hypermatrix to the given value.

    Update a single element of the hypermatrix to the given value.

    i

    1st dimension index of the hypermatrix

    j

    2nd dimension index of the hypermatrix

    k

    3rd dimension index of the hypermatrix

    l

    4th dimension index of the hypermatrix

    m

    5th dimension index of the hypermatrix

    v

    the value to be updated at the above position in the hypermatrix

  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped