public class CorrelationLib
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
Log
The Constant Log.
|
| Constructor and Description |
|---|
CorrelationLib() |
| Modifier and Type | Method and Description |
|---|---|
static TimePeriods |
computePeriods(int correlationPeriod,
long from,
long to)
Compute periods.
|
static long |
getCorrectPeriod(long ms,
int period)
Gets the correct period.
|
static TimePeriod |
getPeriod(SQOrderList orderList1,
SQOrderList orderList2)
Gets the period.
|
static java.util.HashMap<java.lang.Long,TimePeriod> |
getPeriodsAsHashMap(TimePeriods timePeriods,
int period)
Gets the periods as hash map.
|
static java.lang.String |
printPeriod(long time,
int correlationPeriod)
Prints the period.
|
public static TimePeriod getPeriod(SQOrderList orderList1, SQOrderList orderList2)
orderList1 - the order list1orderList2 - the order list2public static TimePeriods computePeriods(int correlationPeriod, long from, long to)
correlationPeriod - the correlation periodfrom - the fromto - the topublic static java.lang.String printPeriod(long time,
int correlationPeriod)
time - the timecorrelationPeriod - the correlation periodpublic static long getCorrectPeriod(long ms,
int period)
ms - the msperiod - the periodpublic static java.util.HashMap<java.lang.Long,TimePeriod> getPeriodsAsHashMap(TimePeriods timePeriods, int period)
timePeriods - the time periodsperiod - the period