toggle menu
Cuttlefish Documentation
Cuttlefish
switch theme
search in API
Cuttlefish
/
com.roboctopi.cuttlefish.utils
/
RegressionFilter
Regression
Filter
class
RegressionFilter
(
val
window_size
:
Int
,
val
order
:
Int
=
3
)
Members
Constructors
Regression
Filter
Link copied to clipboard
constructor
(
window_size
:
Int
,
order
:
Int
=
3
)
Properties
data_window
Link copied to clipboard
val
data_window
:
RingBuffer
derivatives
Link copied to clipboard
var
derivatives
:
Vector
order
Link copied to clipboard
val
order
:
Int
=
3
out
Link copied to clipboard
var
out
:
Double
p
T
Link copied to clipboard
var
pT
:
Double
time_window
Link copied to clipboard
val
time_window
:
RingBuffer
window_size
Link copied to clipboard
val
window_size
:
Int
Functions
update
Link copied to clipboard
fun
update
(
data
:
Double
,
time
:
Double
=
System.nanoTime().toDouble()/(1000.0*1000.0*1000.0)
)