Class

com.github.ozancicek.artan.ml.smoother

LinearKalmanSmoother

Related Doc: package smoother

Permalink

class LinearKalmanSmoother extends StatefulTransformer[String, KalmanOutput, Queue[KalmanOutput], RTSOutput, LinearKalmanSmoother] with KalmanUpdateParams[LinearKalmanSmoother]

Fixed lag linear kalman smoother using Rauch-Tung-Striebel method. The smoother is implemented with a stateful spark transformer for running parallel smoothers /w spark dataframes. Transforms an input dataframe of noisy measurements to dataframe of state estimates using stateful spark transformations, which can be used in both streaming and batch applications.

At a time step k and a fixed lag N, the fixed lag linear kalman smoother computes the state estimates of a linear kalman filter based on all measurements made between step k and step k-t. For each time step k >= N, the smoother outputs an estimate for all the time steps between k and k-N. When k < N, the smoother doesn't output any estimates. As a result, the memory requirements of this filter is N times of a linear kalman filter. Since the smoother outputs multiple estimates for a single measurement, it is advised to set event time column of the measurements with setEventTimeCol.

Except fixedLag parameter, LinearKalmanSmoother has the same parameters with LinearKalmanFilter

Linear Supertypes
KalmanUpdateParams[LinearKalmanSmoother], HasOutputSystemMatrices, HasInitialCovarianceCol, HasInitialStateCol, HasFadingFactor, HasInitialCovariance, HasInitialState, HasMeasurementNoise, HasProcessNoise, HasMeasurementModel, HasProcessModel, HasControlFunctionCol, HasControlCol, HasProcessNoiseCol, HasProcessModelCol, HasMeasurementNoiseCol, HasMeasurementModelCol, HasMeasurementCol, StatefulTransformer[String, KalmanOutput, Queue[KalmanOutput], RTSOutput, LinearKalmanSmoother], StatefulTransformerParams[LinearKalmanSmoother, String], HasStateTimeoutDuration, HasStateKeyCol[String], HasWatermarkDuration, HasEventTimeCol, HasStateTimeoutMode, Transformer, PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. LinearKalmanSmoother
  2. KalmanUpdateParams
  3. HasOutputSystemMatrices
  4. HasInitialCovarianceCol
  5. HasInitialStateCol
  6. HasFadingFactor
  7. HasInitialCovariance
  8. HasInitialState
  9. HasMeasurementNoise
  10. HasProcessNoise
  11. HasMeasurementModel
  12. HasProcessModel
  13. HasControlFunctionCol
  14. HasControlCol
  15. HasProcessNoiseCol
  16. HasProcessModelCol
  17. HasMeasurementNoiseCol
  18. HasMeasurementModelCol
  19. HasMeasurementCol
  20. StatefulTransformer
  21. StatefulTransformerParams
  22. HasStateTimeoutDuration
  23. HasStateKeyCol
  24. HasWatermarkDuration
  25. HasEventTimeCol
  26. HasStateTimeoutMode
  27. Transformer
  28. PipelineStage
  29. Logging
  30. Params
  31. Serializable
  32. Serializable
  33. Identifiable
  34. AnyRef
  35. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LinearKalmanSmoother(stateSize: Int, measurementSize: Int)

    Permalink
  2. new LinearKalmanSmoother(stateSize: Int, measurementSize: Int, uid: String)

    Permalink

    stateSize

    size of the state vector

    measurementSize

    size of the measurement vector

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def $[T](param: Param[T]): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def asDataFrame(in: Dataset[RTSOutput]): DataFrame

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  6. def asDataFrameTransformSchema(schema: StructType): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. final def clear(param: Param[_]): LinearKalmanSmoother.this.type

    Permalink
    Definition Classes
    Params
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final val controlCol: Param[String]

    Permalink

    Param for column name to specify control vector.

    Param for column name to specify control vector.

    Definition Classes
    HasControlCol
  11. final val controlFunctionCol: Param[String]

    Permalink

    Param for column name to specify control matrix

    Param for column name to specify control matrix

    Definition Classes
    HasControlFunctionCol
  12. def copy(extra: ParamMap): LinearKalmanSmoother

    Permalink
    Definition Classes
    LinearKalmanSmoother → Transformer → PipelineStage → Params
  13. def copyValues[T <: Params](to: T, extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  14. final def defaultCopy[T <: Params](extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  15. val defaultStateKey: String

    Permalink
    Attributes
    protected
    Definition Classes
    LinearKalmanSmoother → HasStateKeyCol
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. final val eventTimeCol: Param[String]

    Permalink

    Param for event time column name, which marks the event time of the received measurements.

    Param for event time column name, which marks the event time of the received measurements. If set, the measurements will be processed in ascending order according to event time.

    Definition Classes
    HasEventTimeCol
  19. def explainParam(param: Param[_]): String

    Permalink
    Definition Classes
    Params
  20. def explainParams(): String

    Permalink
    Definition Classes
    Params
  21. final def extractParamMap(): ParamMap

    Permalink
    Definition Classes
    Params
  22. final def extractParamMap(extra: ParamMap): ParamMap

    Permalink
    Definition Classes
    Params
  23. final val fadingFactor: DoubleParam

    Permalink

    Param for controlling the weight of older measurements, should be >= 1.0 .

    Param for controlling the weight of older measurements, should be >= 1.0 . A factor of 1.0 will result in equal weight of all measurements. With larger factor, the weight of recent measurements will increase. Typically set around 1.01 ~ 1.5

    Default is 1.0

    Definition Classes
    HasFadingFactor
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final val fixedLag: IntParam

    Permalink
  26. final def get[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  27. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def getControlCol: String

    Permalink

    Getter for control vector column

    Getter for control vector column

    Definition Classes
    HasControlCol
  29. def getControlExpr: Column

    Permalink
    Attributes
    protected
    Definition Classes
    KalmanUpdateParams
  30. final def getControlFunctionCol: String

    Permalink

    Getter for control function matrix column

    Getter for control function matrix column

    Definition Classes
    HasControlFunctionCol
  31. def getControlFunctionExpr: Column

    Permalink
    Attributes
    protected
    Definition Classes
    KalmanUpdateParams
  32. final def getDefault[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  33. def getEventTimeCol: String

    Permalink

    Getter for event time column parameter

    Getter for event time column parameter

    Definition Classes
    HasEventTimeCol
  34. final def getFadingFactor: Double

    Permalink

    Getter for fading factor param

    Getter for fading factor param

    Definition Classes
    HasFadingFactor
  35. def getFixedLag: Int

    Permalink
  36. final def getInitialCovariance: Matrix

    Permalink

    Getter for the initial covariance matrix param

    Getter for the initial covariance matrix param

    Definition Classes
    HasInitialCovariance
  37. final def getInitialCovarianceCol: String

    Permalink

    Getter for initial state covariance matrix column

    Getter for initial state covariance matrix column

    Definition Classes
    HasInitialCovarianceCol
  38. final def getInitialState: Vector

    Permalink

    Getter for the initial value of the state vector

    Getter for the initial value of the state vector

    Definition Classes
    HasInitialState
  39. final def getInitialStateCol: String

    Permalink

    Getter for initial state vector column

    Getter for initial state vector column

    Definition Classes
    HasInitialStateCol
  40. final def getMeasurementCol: String

    Permalink

    Getter for measurement vector column.

    Getter for measurement vector column.

    Definition Classes
    HasMeasurementCol
  41. def getMeasurementExpr: Column

    Permalink
    Attributes
    protected
    Definition Classes
    KalmanUpdateParams
  42. final def getMeasurementModel: Matrix

    Permalink

    Getter for measurement model matrix param

    Getter for measurement model matrix param

    Definition Classes
    HasMeasurementModel
  43. final def getMeasurementModelCol: String

    Permalink

    Getter for measurement model column

    Getter for measurement model column

    Definition Classes
    HasMeasurementModelCol
  44. final def getMeasurementNoise: Matrix

    Permalink

    Getter for measurement noise matrix param.

    Getter for measurement noise matrix param.

    Definition Classes
    HasMeasurementNoise
  45. final def getMeasurementNoiseCol: String

    Permalink

    Getter for measurement noise matrix column

    Getter for measurement noise matrix column

    Definition Classes
    HasMeasurementNoiseCol
  46. final def getOrDefault[T](param: Param[T]): T

    Permalink
    Definition Classes
    Params
  47. final def getOutputSystemMatrices: Boolean

    Permalink

    Getter for system matrices output flag

    Getter for system matrices output flag

    Definition Classes
    HasOutputSystemMatrices
  48. def getParam(paramName: String): Param[Any]

    Permalink
    Definition Classes
    Params
  49. final def getProcessModel: Matrix

    Permalink

    Getter for the process model matrix param

    Getter for the process model matrix param

    Definition Classes
    HasProcessModel
  50. final def getProcessModelCol: String

    Permalink

    Getter for process model matrix column.

    Getter for process model matrix column.

    Definition Classes
    HasProcessModelCol
  51. final def getProcessNoise: Matrix

    Permalink

    Getter for process noise covariance matrix param

    Getter for process noise covariance matrix param

    Definition Classes
    HasProcessNoise
  52. final def getProcessNoiseCol: String

    Permalink

    Getter for process noise matrix column.

    Getter for process noise matrix column.

    Definition Classes
    HasProcessNoiseCol
  53. final def getStateKeyColname: String

    Permalink

    Getter for state key column name parameter

    Getter for state key column name parameter

    Definition Classes
    HasStateKeyCol
  54. final def getStateKeyColumn: Column

    Permalink

    Getter for state key column

    Getter for state key column

    Definition Classes
    HasStateKeyCol
  55. def getStateTimeoutDuration: Option[String]

    Permalink

    Getter for state timeout duration parameter

    Getter for state timeout duration parameter

    Definition Classes
    HasStateTimeoutDuration
  56. def getTimeoutMode: TimeoutMode

    Permalink

    Getter for timeout mode

    Getter for timeout mode

    returns

    TimeoutMode

    Definition Classes
    HasStateTimeoutMode
  57. def getUDFWithDefault[DefaultType](defaultParam: Param[DefaultType], colParam: Param[String])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[DefaultType]): Column

    Permalink
    Attributes
    protected
    Definition Classes
    KalmanUpdateParams
  58. def getWatermarkDuration: String

    Permalink

    Getter for watermark duration parameter

    Getter for watermark duration parameter

    Definition Classes
    HasWatermarkDuration
  59. final def hasDefault[T](param: Param[T]): Boolean

    Permalink
    Definition Classes
    Params
  60. def hasParam(paramName: String): Boolean

    Permalink
    Definition Classes
    Params
  61. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  62. final val initialCovariance: Param[Matrix]

    Permalink

    Param for the initial covariance matrix

    Param for the initial covariance matrix

    Definition Classes
    HasInitialCovariance
  63. final val initialCovarianceCol: Param[String]

    Permalink

    Param for initial state covariance matrix as a dataframe column.

    Param for initial state covariance matrix as a dataframe column. Overrides initialCovariance param. Can be used for initializing separate state covariance matrix for each state.

    Definition Classes
    HasInitialCovarianceCol
  64. final val initialState: Param[Vector]

    Permalink

    Param for initial value of the state vector

    Param for initial value of the state vector

    Definition Classes
    HasInitialState
  65. final val initialStateCol: Param[String]

    Permalink

    Param for initial state vector as a dataframe column.

    Param for initial state vector as a dataframe column. Overrides initialState param. Can be used for initializing separate state vector for each state.

    Definition Classes
    HasInitialStateCol
  66. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  67. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  68. final def isDefined(param: Param[_]): Boolean

    Permalink
    Definition Classes
    Params
  69. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  70. final def isSet(param: Param[_]): Boolean

    Permalink
    Definition Classes
    Params
  71. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  72. def keyFunc: (KalmanOutput) ⇒ String

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  73. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  74. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  75. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  76. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  77. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  78. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  79. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  80. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  81. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  82. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  83. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  84. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  85. final val measurementCol: Param[String]

    Permalink

    Param for measurement column containing measurement vector.

    Param for measurement column containing measurement vector.

    Definition Classes
    HasMeasurementCol
  86. final val measurementModel: Param[Matrix]

    Permalink

    Param for measurement model matrix.

    Param for measurement model matrix. Its dot-product with state should produce the measurement vector.

    Definition Classes
    HasMeasurementModel
  87. final val measurementModelCol: Param[String]

    Permalink

    Param for column name to specify measurement model from input DataFrame rather than a constant measurement model for all filters.

    Param for column name to specify measurement model from input DataFrame rather than a constant measurement model for all filters. Overrides measurementModel param.

    Definition Classes
    HasMeasurementModelCol
  88. final val measurementNoise: Param[Matrix]

    Permalink

    Param for measurement noise covariance matrix, should be a square matrix with dimensions measurementSize x measurementSize.

    Param for measurement noise covariance matrix, should be a square matrix with dimensions measurementSize x measurementSize.

    Definition Classes
    HasMeasurementNoise
  89. final val measurementNoiseCol: Param[String]

    Permalink

    Param for column name to specify measurement noise from input DataFrame rather than a constant measurement noise for all filters.

    Param for column name to specify measurement noise from input DataFrame rather than a constant measurement noise for all filters. Overrides measurementNoise param

    Definition Classes
    HasMeasurementNoiseCol
  90. val measurementSize: Int

    Permalink

    size of the measurement vector

    size of the measurement vector

    Definition Classes
    LinearKalmanSmoother → HasMeasurementNoise → HasMeasurementModel
  91. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  92. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  94. implicit val outEncoder: Encoder[RTSOutput]

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  95. final val outputSystemMatrices: BooleanParam

    Permalink

    Param for enabling output of system matrices.

    Param for enabling output of system matrices. When true, system matrices will be also added to output DataFrame. Default is false

    Definition Classes
    HasOutputSystemMatrices
  96. lazy val params: Array[Param[_]]

    Permalink
    Definition Classes
    Params
  97. final val processModel: Param[Matrix]

    Permalink

    Param for the process model matrix, transitions the state to the next state with dot product.

    Param for the process model matrix, transitions the state to the next state with dot product.

    Definition Classes
    HasProcessModel
  98. final val processModelCol: Param[String]

    Permalink

    Param for column name to specify process model from input DataFrame rather than a constant process model for all filters.

    Param for column name to specify process model from input DataFrame rather than a constant process model for all filters. Overrides processModel param.

    Definition Classes
    HasProcessModelCol
  99. final val processNoise: Param[Matrix]

    Permalink

    Param for process noise covariance matrix, should be a square matrix with dimensions stateSize x stateSize.

    Param for process noise covariance matrix, should be a square matrix with dimensions stateSize x stateSize.

    Default is identity matrix.

    Definition Classes
    HasProcessNoise
  100. final val processNoiseCol: Param[String]

    Permalink

    Param for column name to specify process noise matrix from input DataFrame rather than a constant process noise for all filters.

    Param for column name to specify process noise matrix from input DataFrame rather than a constant process noise for all filters. Overrides processNoise param

    Definition Classes
    HasProcessNoiseCol
  101. implicit val rowEncoder: Encoder[KalmanOutput]

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  102. final def set(paramPair: ParamPair[_]): LinearKalmanSmoother.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  103. final def set(param: String, value: Any): LinearKalmanSmoother.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  104. final def set[T](param: Param[T], value: T): LinearKalmanSmoother.this.type

    Permalink
    Definition Classes
    Params
  105. def setControlCol(value: String): LinearKalmanSmoother

    Permalink

    Set the column for input control vectors.

    Set the column for input control vectors.

    Control vectors should have compatible size with control function (controlVectorSize). The product of control matrix & vector should produce a vector with stateSize. null values are allowed, which will result in state transition without control input.

    Definition Classes
    KalmanUpdateParams
  106. def setControlFunctionCol(value: String): LinearKalmanSmoother

    Permalink

    Set the column for input control matrices.

    Set the column for input control matrices.

    Control matrices should have dimensions (stateSize, controlVectorSize). null values are allowed, which will result in state transition without control input

    Definition Classes
    KalmanUpdateParams
  107. final def setDefault(paramPairs: ParamPair[_]*): LinearKalmanSmoother.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  108. final def setDefault[T](param: Param[T], value: T): LinearKalmanSmoother.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  109. def setEventTimeCol(value: String): LinearKalmanSmoother

    Permalink

    Sets the event time column in the input DataFrame for event time based state timeout.

    Sets the event time column in the input DataFrame for event time based state timeout.

    Definition Classes
    StatefulTransformerParams
  110. def setFadingFactor(value: Double): LinearKalmanSmoother

    Permalink

    Fading factor for giving more weights to more recent measurements.

    Fading factor for giving more weights to more recent measurements. If needed, it should be greater than one. Typically set around 1.01 ~ 1.05. Default is 1.0, which will result in equally weighted measurements.

    Definition Classes
    KalmanUpdateParams
  111. def setFixedLag(value: Int): LinearKalmanSmoother.this.type

    Permalink

    Sets the smoother fixed lag.

    Sets the smoother fixed lag.

    Default is 2.

  112. def setInitialCovariance(value: Matrix): LinearKalmanSmoother

    Permalink

    Set the initial covariance matrix with dimensions (stateSize, stateSize)

    Set the initial covariance matrix with dimensions (stateSize, stateSize)

    It will be applied to all states. If the state timeouts and starts receiving measurements after timeout, it will again start from this initial covariance vector. Default is identity matrix.

    Definition Classes
    KalmanUpdateParams
  113. def setInitialCovarianceCol(value: String): LinearKalmanSmoother

    Permalink

    Set the column corresponding to initial covariance matrix.

    Set the column corresponding to initial covariance matrix.

    The matrices in the column should be of dimensions (stateSize, statesize).

    Definition Classes
    KalmanUpdateParams
  114. def setInitialState(value: Vector): LinearKalmanSmoother

    Permalink

    Set the initial state vector with size (stateSize).

    Set the initial state vector with size (stateSize).

    It will be applied to all states. If the state timeouts and starts receiving measurements after timeout, it will again start from this initial state vector. Default is zero. For different initial state vector across filters or measurements, set the dataframe column with setInitialStateCol

    Definition Classes
    KalmanUpdateParams
  115. def setInitialStateCol(value: String): LinearKalmanSmoother

    Permalink

    Set the column corresponding to initial state vector.

    Set the column corresponding to initial state vector.

    The vectors in the column should be of size (stateSize).

    Definition Classes
    KalmanUpdateParams
  116. def setMeasurementCol(value: String): LinearKalmanSmoother

    Permalink

    Set the column corresponding to measurements.

    Set the column corresponding to measurements.

    The vectors in the column should be of size (measurementSize). null values are allowed, which will result in only state prediction step.

    Definition Classes
    KalmanUpdateParams
  117. def setMeasurementModel(value: Matrix): LinearKalmanSmoother

    Permalink

    Set default value for measurement model matrix with dimensions (stateSize, measurementSize) which maps states to measurement.

    Set default value for measurement model matrix with dimensions (stateSize, measurementSize) which maps states to measurement.

    Note that if this parameter is set through here, it will result in same measurement model for all filters & measurements. For different measurement models across filters or measurements, set a dataframe column for measurement model from setMeasurementModelCol.

    Default value maps the first state value to measurements.

    Definition Classes
    KalmanUpdateParams
  118. def setMeasurementModelCol(value: String): LinearKalmanSmoother

    Permalink

    Set the column for input measurement model matrices

    Set the column for input measurement model matrices

    Measurement model matrices should have dimensions (stateSize, measurementSize)

    Definition Classes
    KalmanUpdateParams
  119. def setMeasurementNoise(value: Matrix): LinearKalmanSmoother

    Permalink

    Set default value for measurement noise matrix with dimensions (measurementSize, measurementSize).

    Set default value for measurement noise matrix with dimensions (measurementSize, measurementSize).

    Note that if this parameter is set through here, it will result in same measurement noise for all filters & measurements. For different measurement noise values across filters or measurements, set a dataframe column for measurement noise from setMeasurementNoiseCol.

    Default is identity matrix.

    Definition Classes
    KalmanUpdateParams
  120. def setMeasurementNoiseCol(value: String): LinearKalmanSmoother

    Permalink

    Set the column for input measurement noise matrices.

    Set the column for input measurement noise matrices.

    Measurement noise matrices should have dimensions (measurementSize, measurementSize)

    Definition Classes
    KalmanUpdateParams
  121. def setOutputSystemMatrices: LinearKalmanSmoother

    Permalink

    Enable outputting system matrices

    Enable outputting system matrices

    Default is false

    Definition Classes
    KalmanUpdateParams
  122. def setProcessModel(value: Matrix): LinearKalmanSmoother

    Permalink

    Set default value for process model matrix with dimensions (stateSize, stateSize) which governs state transition.

    Set default value for process model matrix with dimensions (stateSize, stateSize) which governs state transition.

    Note that if this parameter is set through here, it will result in same process model for all filters & measurements. For different process models across filters or measurements, set a dataframe column for process model from setProcessModelCol.

    Default is identity matrix.

    Definition Classes
    KalmanUpdateParams
  123. def setProcessModelCol(value: String): LinearKalmanSmoother

    Permalink

    Set the column for input process model matrices.

    Set the column for input process model matrices.

    Process model matrices should have dimensions (stateSize, stateSize)

    Definition Classes
    KalmanUpdateParams
  124. def setProcessNoise(value: Matrix): LinearKalmanSmoother

    Permalink

    Set default value for process noise matrix with dimensions (stateSize, stateSize).

    Set default value for process noise matrix with dimensions (stateSize, stateSize).

    Note that if this parameter is set through here, it will result in same process noise for all filters & measurements. For different process noise values across filters or measurements, set a dataframe column for process noise from setProcessNoiseCol.

    Default is identity matrix.

    Definition Classes
    KalmanUpdateParams
  125. def setProcessNoiseCol(value: String): LinearKalmanSmoother

    Permalink

    Set the column for input process noise matrices.

    Set the column for input process noise matrices.

    Process noise matrices should have dimensions (stateSize, stateSize)

    Definition Classes
    KalmanUpdateParams
  126. def setStateKeyCol(value: String): LinearKalmanSmoother

    Permalink

    Sets the state key column.

    Sets the state key column. Each value in the column should uniquely identify a stateful transformer. Each unique value will result in a separate state.

    Definition Classes
    StatefulTransformerParams
  127. def setStateTimeoutDuration(value: String): LinearKalmanSmoother

    Permalink

    Sets the state timeout duration for all states, only valid when state timeout mode is not 'none'.

    Sets the state timeout duration for all states, only valid when state timeout mode is not 'none'. Must be a valid duration string, such as '10 minutes'.

    Definition Classes
    StatefulTransformerParams
  128. def setStateTimeoutMode(value: String): LinearKalmanSmoother

    Permalink

    Sets the state timeout mode.

    Sets the state timeout mode. Supported values are 'none', 'process' and 'event'. Enabling state timeout will clear the state after a certain timeout duration which can be set. If a state receives measurements after it times out, the state will be initialized as if it received no measurements.

    - 'none': No state timeout, state is kept indefinitely.

    - 'process': Process time based state timeout, state will be cleared if no measurements are received for a duration based on processing time. Effects all states. Timeout duration must be set with setStateTimeoutDuration.

    - 'event': Event time based state timeout, state will be cleared if no measurements are recieved for a duration based on event time determined by watermark. Effects all states. Timeout duration must be set with setStateTimeoutDuration. Additionally, event time column and it's watermark duration must be set with setEventTimeCol and setWatermarkDuration. Note that this will result in dropping measurements occuring later than the watermark.

    Default is 'none'

    Definition Classes
    StatefulTransformerParams
  129. def setWatermarkDuration(value: String): LinearKalmanSmoother

    Permalink

    Set the watermark duration for all states, only valid when state timeout mode is 'event'.

    Set the watermark duration for all states, only valid when state timeout mode is 'event'. Must be a valid duration string, such as '10 minutes'.

    Definition Classes
    StatefulTransformerParams
  130. implicit val stateEncoder: Encoder[Queue[KalmanOutput]]

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  131. final val stateKeyCol: Param[String]

    Permalink

    Param for state key column.

    Param for state key column. State keys uniquely identify the each state in stateful transformers, thus controlling the number of states and the degree of parallelization"

    Definition Classes
    HasStateKeyCol
  132. implicit val stateKeyEncoder: Encoder[String]

    Permalink
  133. val stateSize: Int

    Permalink

    size of the state vector

    size of the state vector

    Definition Classes
    LinearKalmanSmoother → HasInitialCovariance → HasInitialState → HasProcessNoise → HasMeasurementModel → HasProcessModel
  134. final val stateTimeoutDuration: Param[String]

    Permalink

    Param for state timeout duration.

    Param for state timeout duration.

    Definition Classes
    HasStateTimeoutDuration
  135. def stateUpdateSpec: LKFSmootherStateSpec

    Permalink
    Attributes
    protected
    Definition Classes
    LinearKalmanSmoother → StatefulTransformer
  136. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  137. final val timeoutMode: Param[String]

    Permalink

    Param for timeout mode, controlling the eviction of states which receive no measurement for a certain duration

    Param for timeout mode, controlling the eviction of states which receive no measurement for a certain duration

    Definition Classes
    HasStateTimeoutMode
  138. def toString(): String

    Permalink
    Definition Classes
    Identifiable → AnyRef → Any
  139. def transform(dataset: Dataset[_]): DataFrame

    Permalink
    Definition Classes
    LinearKalmanSmoother → Transformer
  140. def transform(dataset: Dataset[_], paramMap: ParamMap): DataFrame

    Permalink
    Definition Classes
    Transformer
    Annotations
    @Since( "2.0.0" )
  141. def transform(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): DataFrame

    Permalink
    Definition Classes
    Transformer
    Annotations
    @Since( "2.0.0" ) @varargs()
  142. def transformSchema(schema: StructType): StructType

    Permalink
    Definition Classes
    LinearKalmanSmoother → PipelineStage
  143. def transformSchema(schema: StructType, logging: Boolean): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  144. def transformWithState(in: DataFrame)(implicit keyEncoder: Encoder[String]): Dataset[RTSOutput]

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  145. val uid: String

    Permalink
    Definition Classes
    LinearKalmanSmoother → Identifiable
  146. def validateSchema(schema: StructType): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    KalmanUpdateParams
  147. def validateWatermarkColumns(schema: StructType): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  148. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  151. final val watermarkDuration: Param[String]

    Permalink

    Param for watermark duration as string, measured from the eventTimeCol column.

    Param for watermark duration as string, measured from the eventTimeCol column. If set, measurements will be processed in append mode with the specified watermark duration.

    Definition Classes
    HasWatermarkDuration

Inherited from KalmanUpdateParams[LinearKalmanSmoother]

Inherited from HasOutputSystemMatrices

Inherited from HasInitialCovarianceCol

Inherited from HasInitialStateCol

Inherited from HasFadingFactor

Inherited from HasInitialCovariance

Inherited from HasInitialState

Inherited from HasMeasurementNoise

Inherited from HasProcessNoise

Inherited from HasMeasurementModel

Inherited from HasProcessModel

Inherited from HasControlFunctionCol

Inherited from HasControlCol

Inherited from HasProcessNoiseCol

Inherited from HasProcessModelCol

Inherited from HasMeasurementNoiseCol

Inherited from HasMeasurementModelCol

Inherited from HasMeasurementCol

Inherited from StatefulTransformer[String, KalmanOutput, Queue[KalmanOutput], RTSOutput, LinearKalmanSmoother]

Inherited from StatefulTransformerParams[LinearKalmanSmoother, String]

Inherited from HasStateTimeoutDuration

Inherited from HasStateKeyCol[String]

Inherited from HasWatermarkDuration

Inherited from HasEventTimeCol

Inherited from HasStateTimeoutMode

Inherited from Transformer

Inherited from PipelineStage

Inherited from Logging

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

Parameters

State Parameters

Members

Parameter setters

Parameter getters