case class FeatureMatrix[T](features: Vector[Vector[Option[T]]]) extends LogSupport with Product with Serializable
Two-dimensional matrix of features, organized by row.
- features
Matrix of related features, as Scala Options.
- Alphabetic
- By Inheritance
- FeatureMatrix
- Product
- Equals
- LogSupport
- LazyLogger
- LoggingMethods
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
FeatureMatrix(features: Vector[Vector[Option[T]]])
- features
Matrix of related features, as Scala Options.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cell(r: Int, c: Int): Option[T]
Retrieve value of matrix identified by row, column indices.
Retrieve value of matrix identified by row, column indices.
- r
Row index.
- c
Column index.
- def cellIndex(cellValue: Option[T]): Vector[IndexedValue[T]]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val columnCounts: Vector[Int]
-
def
columns: Int
Number of columns in the FeatureMatrix.
-
macro
def
debug(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
debug(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
def
delimited(emptyValue: String = "-", separator: String = "|"): String
Compose a delimited-text representation of the matrix.
Compose a delimited-text representation of the matrix.
- emptyValue
String to use for None values.
- separator
String to use in separating columns of the delimited-text output.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
macro
def
error(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
error(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- val features: Vector[Vector[Option[T]]]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- lazy val indexedCells: Vector[IndexedValue[T]]
-
macro
def
info(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
info(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
labelColumns(labels: Vector[String], emptyValue: String = "-"): Vector[Vector[String]]
Compose text table with columns labelled.
Compose text table with columns labelled.
- labels
List of labels to use.
- emptyValue
String to represent None.
-
def
labelRows(labels: Vector[String], emptyValue: String = "-"): Vector[Vector[String]]
Compose text table with rows labelled.
Compose text table with rows labelled.
- labels
List of labels to use.
- emptyValue
String to represent None.
-
macro
def
logAt(logLevel: LogLevel, message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
lazy val
logger: Logger
- Attributes
- protected[this]
- Definition Classes
- LazyLogger
-
def
markdown(rowLabels: Vector[String] = Vector.empty[String], emptyValue: String = "-"): String
Create a markdown table.
Create a markdown table.
- rowLabels
List of labels to use for rows.
- emptyValue
String to use for None.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
prettyPrint(emptyValue: String = "-", featureSeparator: String = " ", rowLabels: Vector[String] = Vector.empty[String], columnLabels: Vector[String] = Vector.empty[String]): String
Generate String view of matrix.
Generate String view of matrix.
- featureSeparator
String to use to separate columns.
- rowLabels
List of labels for rows.
- columnLabels
List of labels for columns.
-
def
rows: Int
Number of rows in the FeatureMatrix.
-
def
stringTable(emptyValue: String = "-"): Vector[Vector[String]]
Compose a table of String values from features.
Compose a table of String values from features.
- emptyValue
String to use for occurrences of None.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
macro
def
trace(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
trace(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
def
transpose: FeatureMatrix[T]
Create a new FeatureMatrix by transposing rows and columns.
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
macro
def
warn(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
warn(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.