numal
Class KepPwrSpectrum
java.lang.Object
numal.KepPwrSpectrum
public class KepPwrSpectrum
- extends java.lang.Object
Method Summary |
static double[][] |
fitAtPeriod(Kernel k,
double period,
boolean eccentric,
int[] trials,
double[] eccrange)
|
static double[] |
getKeplPower(Kernel k1,
double period,
double M,
boolean eccentric,
int[] trials,
double[] eccrange)
Calculates the power at a particular period according to the procedure by
Cumming 2004. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KepPwrSpectrum
public KepPwrSpectrum()
getKeplPower
public static double[] getKeplPower(Kernel k1,
double period,
double M,
boolean eccentric,
int[] trials,
double[] eccrange)
- Calculates the power at a particular period according to the procedure by
Cumming 2004. All the system information (star mass, RVs/residuals, etc.)
are encoded in the kernel object k1 (a copy is made, so the state of k1 will
not change).
- Parameters:
k1
- The kernel object carrying the information about the system.period
- Period at which to search.M
- # of effective frequencies, to calculate FAP.eccentric
- whether to compute circular or eccentric periodogramtrials
- array of {ecctrials, loptrials} (the size of the grid for the starting point eccs & lops)eccrange
- range of eccentricity
- Returns:
- an array containing {period, power, FAP}
fitAtPeriod
public static double[][] fitAtPeriod(Kernel k,
double period,
boolean eccentric,
int[] trials,
double[] eccrange)