|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Kernel>
systemic.KernelList
public class KernelList
A collection of Kernel objects, usually representing the output of bootstrap or MCMC. Each Kernel object may contain orbital elements corresponding to the element of a particular chain.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
KernelList()
|
|
| Method Summary | |
|---|---|
Kernel |
average()
Returns a Kernel, the orbital elements (and voffs) of which represent the average (set by setAverageType(int)) of the corresponding orbital element. |
KernelList |
clone()
Returns a clone of the list. |
java.util.ArrayList<double[][]> |
getAllElements()
Returns an ArrayList |
int |
getAverageType()
Returns the current numerical average (0 = mean, 1 = median). |
int |
getNOffsets()
Returns the number of offsets in each Kernel |
int |
getNPlanets()
Returns the number of planets in each Kernel |
double[] |
getParSlice(int index,
java.lang.String what)
Returns an array of doubles with the parameters derived for each model for planet index / offset index |
Kernel |
percentile(double p)
|
java.lang.Object[] |
predictTransits(double time1,
double time2,
int intMethod)
|
void |
printSummary()
Prints a summary table to the standard output. |
protected void |
readBinary(java.io.FileInputStream fos)
|
protected void |
readXML(java.io.FileInputStream fos)
|
void |
reduce()
Reduces the size in memory (and on disk) of the Kernel list, losing some data (e.g. |
void |
restore(java.lang.String fn,
int type)
Reads the contents of a previously saved Kernel list, in binary (type = 0) or XML (type = 1) format. |
void |
save(java.lang.String fn,
int type)
Saves the list to a file, using a binary (type = 0) or XML (type = 1) format. |
protected void |
saveBinary(java.io.FileOutputStream fos)
|
protected void |
saveXML(java.io.FileOutputStream fos)
|
void |
setAverageType(int averageType)
Sets the numerical average (0 = mean, 1 = median) |
Kernel |
stdDev()
Returns a Kernel, the orbital elements (and voffs) of which represent the standard deviation of the corresponding orbital element. |
KernelList |
subset(int step)
|
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public KernelList()
| Method Detail |
|---|
public void save(java.lang.String fn,
int type)
throws java.io.FileNotFoundException,
java.io.IOException
fn - File pathtype - Output format
java.io.FileNotFoundException
java.io.IOException
protected void saveBinary(java.io.FileOutputStream fos)
throws java.io.IOException
java.io.IOException
protected void saveXML(java.io.FileOutputStream fos)
throws java.io.IOException
java.io.IOExceptionprotected void readXML(java.io.FileInputStream fos)
protected void readBinary(java.io.FileInputStream fos)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void restore(java.lang.String fn,
int type)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
fn - Path of file to be read.type - File format.
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionpublic void printSummary()
public int getAverageType()
public void setAverageType(int averageType)
averageType - public int getNOffsets()
public int getNPlanets()
public void reduce()
public KernelList clone()
clone in class java.util.ArrayList<Kernel>public java.util.ArrayList<double[][]> getAllElements()
public Kernel stdDev()
public Kernel average()
setAverageType(int)) of the corresponding orbital element.
public Kernel percentile(double p)
p -
public KernelList subset(int step)
step -
public double[] getParSlice(int index,
java.lang.String what)
index - what - is one of: "P", "M", "e", "MA", "LOP", "INC", "NODE", "OFFS"
public java.lang.Object[] predictTransits(double time1,
double time2,
int intMethod)
time1 - time2 - intMethod -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||