util.redshift
Class Redshifts
java.lang.Object
util.redshift.Redshifts
public class Redshifts
- extends Object
Create a redshift sorted list of quasars from Veron (2003) .
The program will extract the emission emission line redshift
column 71- 75.
By John Talbot, Oct 4, 2003
- INPUT: table1.txt data file from 2003ApJS...87..451H
- OUTPUT:
- list of quasars sorted by redshifts
- Centered running average histogram with 1, 2, 4, 8, 16, 32, 64 and
128 A bin sizes.
- Histogram for one bin size and half-bin size shifted count
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
min
public static final double min
- See Also:
- Constant Field Values
max
public static final double max
- See Also:
- Constant Field Values
cutoff
public static final int cutoff
- See Also:
- Constant Field Values
zFormatter
public static final DecimalFormat zFormatter
Redshifts
public Redshifts()
main
public static void main(String[] args)
getVarianceOfRandomQuasars
public static void getVarianceOfRandomQuasars(List<Quasar> quasars,
int aNumberOfSimulations)
throws IOException
- Throws:
IOException
getStatistics
public static void getStatistics(List<Quasar> quasars,
String fileName)
throws IOException
- Get statistics from a list of quasar redshifts
- Parameters:
quasars
- quasars instances (each having a redshift property)fileName
- the filename
- Throws:
IOException
formatCount
public static String formatCount(int aCount)
formatFloatCount
public static String formatFloatCount(double aCount)
getRandomQuasars
public static List<Quasar> getRandomQuasars(List<Quasar> quasars,
int number)
- Monte-Carlo generation of a specified number of redshift randomly generated
with the same distribution as bin delta z = 0.08 histogram which simulated
the smoothed redshift distribution.
- Parameters:
quasars
- a List of Quasar instances containing actual redshift value.number
- the number of random redshifts to generate
- Returns:
- a list of quasar instances with redshifts having the same distribution as the input list