package Ġcom . gr in is rit . crypto . analysis Ċ Ċ // ĠTODO Ġcould Ġbe Ġtensor Ċ type alias ĠPoints Ġ= ĠPair < List < Long >, ĠList < Float >> Ċ type alias ĠMutable Points Ġ= ĠPair < Mutable List < Long >, ĠMutable List < Float >> Ċ Ċ fun Ġempty Points () Ġ= ĠPair ( mutable ListOf < Long >(), Ġmutable ListOf < Float >()) Ċ Ċ fun ĠMutable Points . add ( time : ĠLong , Ġdata : ĠFloat ){ ĊĠĠĠ Ġfirst . add ( time ) ĊĠĠĠ Ġsecond . add ( data ) Ċ } Ċ Ċ type alias ĠTimestamp To Value Ġ= ĠPair < Long , ĠFloat ?> Ċ type alias ĠAg gregated Values Ġ= ĠMutable List < Timestamp To Value > Ċ type alias ĠMin ute To Values Ġ= ĠMutable Map < Long , ĠAg gregated Values > Ċ Ċ fun Ġempty Ag gregated Values () Ġ= Ġmutable ListOf < Timestamp To Value >() Ċ Ċ fun Ġempty Minute To Values () Ġ= Ġmutable Map Of < Long , ĠAg gregated Values >() Ċ Ċ fun ĠMin ute To Values . add ( micro s : ĠLong , Ġvalue : ĠFloat ?) Ġ{ ĊĠĠĠ Ġval Ġminutes Ġ= Ġmicro sTo Minutes ( micro s ) ĊĠĠĠ Ġget Or Put ( minutes ) Ġ{ Ġmutable ListOf () Ġ}. add ( Pair ( micro s , Ġvalue )) Ċ } Ċ