| 构造器 | 说明 |
|---|---|
DateTimeIndex() |
Constructor
|
DateTimeIndex(int tNum,
String end,
String freq) |
Constructor
|
DateTimeIndex(String start,
int tNum,
String freq) |
Constructor
|
DateTimeIndex(String start,
String end,
String freq) |
Constructor
|
DateTimeIndex(List data) |
Constructor
|
DateTimeIndex(List data,
String name) |
Constructor
|
DateTimeIndex(ucar.ma2.Array data) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Object |
clone() |
|
List<Date> |
getDateValues() |
Get date data
|
Object[] |
getIndices(Object label) |
Get indices
|
Object[] |
getIndices(List<Object> labels) |
Get indices
|
String |
getNameFormat() |
Get Name format
|
org.joda.time.ReadablePeriod |
getPeriod() |
|
org.joda.time.ReadablePeriod |
getResamplePeriod() |
Get resample period
|
int |
indexOf(String d) |
Index of
|
int |
indexOf(Date d) |
Index of
|
List<Integer> |
indexOf(List ds) |
Index of
|
int |
indexOf(org.joda.time.DateTime d) |
Index of
|
void |
setFormat(String value) |
Set string format
|
void |
setPeriod(org.joda.time.ReadablePeriod value) |
Set period
|
void |
setResamplPeriod(org.joda.time.ReadablePeriod value) |
Set resample period
|
DateTimeIndex |
subIndex() |
Sub index
|
DateTimeIndex |
subIndex(int start,
int end,
int step) |
Sub index
|
DateTimeIndex |
subIndex(List<Integer> idx) |
Sub index
|
String |
toString() |
|
String |
toString(int idx) |
Convert i_th index to string
|
String |
toString(int idx,
String format) |
Convert i_th index to string
|
void |
updateFormat() |
Update format
|
add, add, append, contains, factory, factory, fillKeyList, get, getData, getFormat, getIndices_s, getName, getValues, indexAll, indexOf, indices, indices, iterator, set, setData, setName, size, subList, toString_IndexforEach, spliteratorpublic DateTimeIndex()
public DateTimeIndex(ucar.ma2.Array data)
data - Datapublic DateTimeIndex(List data)
data - Data listpublic DateTimeIndex(List data, String name)
data - Data listname - Namepublic DateTimeIndex(String start, String end, String freq)
start - Start timeend - End timefreq - Frequentpublic DateTimeIndex(String start, int tNum, String freq)
start - Start timetNum - Date time numberfreq - Frequentpublic org.joda.time.ReadablePeriod getPeriod()
public void setPeriod(org.joda.time.ReadablePeriod value)
value - Periodpublic org.joda.time.ReadablePeriod getResamplePeriod()
public void setResamplPeriod(org.joda.time.ReadablePeriod value)
value - Resample periodpublic void setFormat(String value)
public String getNameFormat()
getNameFormat 在类中 Index<org.joda.time.DateTime>public int indexOf(org.joda.time.DateTime d)
d - DateTimepublic int indexOf(Date d)
d - Datepublic int indexOf(String d)
d - Date stringpublic Object[] getIndices(List<Object> labels)
getIndices 在类中 Index<org.joda.time.DateTime>labels - Labelspublic Object[] getIndices(Object label)
getIndices 在类中 Index<org.joda.time.DateTime>label - Labelpublic DateTimeIndex subIndex()
public DateTimeIndex subIndex(List<Integer> idx)
public DateTimeIndex subIndex(int start, int end, int step)
public void updateFormat()
updateFormat 在类中 Index<org.joda.time.DateTime>public String toString(int idx)
Copyright © 2019. All rights reserved.