Update filtering
This commit is contained in:
parent
653c3835d4
commit
b4dbf9e1d2
|
|
@ -45,8 +45,9 @@ pub async fn linear_regression(
|
||||||
if let Some(vec) = input_rt_data.get(symbol) {
|
if let Some(vec) = input_rt_data.get(symbol) {
|
||||||
let lr_data_wrapper_arc_c = Arc::clone(&lr_data_wrapper_arc);
|
let lr_data_wrapper_arc_c = Arc::clone(&lr_data_wrapper_arc);
|
||||||
let symbol_c = symbol.clone();
|
let symbol_c = symbol.clone();
|
||||||
let rt_price_data = vec.clone();
|
|
||||||
if rt_price_data.len() >= length {
|
if vec.len() >= length {
|
||||||
|
let rt_price_data = vec.clone();
|
||||||
task_vec.push(tokio::spawn(async move {
|
task_vec.push(tokio::spawn(async move {
|
||||||
// Calculate prediction of linear regression
|
// Calculate prediction of linear regression
|
||||||
let mut lr_data_vec: Vec<LrData> = Vec::new();
|
let mut lr_data_vec: Vec<LrData> = Vec::new();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user