Prototypes | |
| INT4 | sampleREAL4VectorAligned (REAL4VectorAligned *output, const REAL4VectorAligned *input, const gsl_rng *rng) |
| Sample a number (sampleSize) of values from a REAL4VectorAligned (input) randomly. More... | |
| REAL4VectorAligned * | sampleREAL4VectorAlignedArray_nozerosaccepted (const REAL4VectorAlignedArray *input, const UINT4 numberofvectors, const UINT4 sampleSize, const gsl_rng *rng) |
| Sample a number (sampleSize) of values from an REAL4VectorAlignedArray (input) randomly from vector 0 up to numberofvectors without accepting any values of zero Needs this numberofvectors limit because of the IHS algorithm. More... | |
| REAL8 | calcMeanD (const REAL8Vector *vector) |
| Compute the mean value of a REAL8Vector. More... | |
| REAL8 | calcStddevD (const REAL8Vector *vector) |
| Compute the standard deviation of a REAL8Vector. More... | |
| REAL8 | expRandNum (const REAL8 mu, const gsl_rng *ptrToGenerator) |
| Create a exponentially distributed noise value. More... | |
| REAL4VectorAligned * | expRandNumVector (const UINT4 length, const REAL8 mu, const gsl_rng *ptrToGenerator) |
| INT4 | ks_test_exp (REAL8 *ksvalue, const REAL4VectorAligned *vector) |
| KS test of data against an expected exponential distribution. More... | |
| INT4 | kuipers_test_exp (REAL8 *kuipervalue, const REAL4VectorAligned *vector) |
| Kuiper's test of data against an expected exponential distribution. More... | |
| REAL4 | calcMean (const REAL4VectorAligned *vector) |
| Compute the mean value of a REAL4VectorAligned, computed via recursion like in GSL. More... | |
| REAL4 | calcMean_ignoreZeros (const REAL4VectorAligned *vector) |
| Compute the mean value of a REAL4VectorAligned without accepting values of zero. More... | |
| INT4 | calcHarmonicMean (REAL4 *harmonicMean, const REAL4VectorAligned *vector, UINT4 numfbins, UINT4 numffts) |
| Compute the harmonic mean value of a REAL4VectorAligned of SFT values. More... | |
| INT4 | calcStddev (REAL4 *sigma, const REAL4VectorAligned *vector) |
| Compute the standard deviation of a REAL4VectorAligned. More... | |
| INT4 | calcStddev_ignoreZeros (REAL4 *sigma, const REAL4VectorAligned *vector) |
| Compute the standard deviation of a REAL4VectorAligned ignoring zero values. More... | |
| INT4 | calcRms (REAL4 *rms, const REAL4VectorAligned *vector) |
| Compute the RMS value of a REAL4VectorAligned. More... | |
| INT4 | calcMedian (REAL4 *median, const REAL4VectorAligned *vector) |
| Calculate the median value from a REAL4VectorAligned. More... | |
| INT4 | sort_float_smallest (REAL4VectorAligned *output, const REAL4VectorAligned *input) |
| Sort a REAL4VectorAligned, keeping the smallest of the values in the output vector. More... | |
| void | sort_double_ascend (REAL8Vector *vector) |
| Sort a REAL8Vector in ascending order, modifying the input vector. More... | |
| void | sort_float_ascend (REAL4VectorAligned *vector) |
| Sort a REAL4VectorAligned in ascending order, modifying the input vector. More... | |
| UINT4 | max_index (const REAL4VectorAligned *vector) |
| Determine the index value of the maximum value in a REAL4VectorAligned. More... | |
| UINT4 | max_index_double (const REAL8Vector *vector) |
| Determine the index value of the maximum value in a REAL8Vector. More... | |
| UINT4 | max_index_in_range (const REAL4VectorAligned *vector, const UINT4 startlocation, const UINT4 lastlocation) |
| Determine the index value of the maximum value between elements of a REAL4VectorAligned (inclusive) More... | |
| INT4 | min_max_index_INT4Vector (const INT4Vector *inputvector, UINT4 *min_index_out, UINT4 *max_index_out) |
| Determine the index value of the maximum and minimum values in an INT4Vector. More... | |
| INT4 | qsort_REAL4_compar (const void *a, const void *b) |
| INT4 | qsort_REAL8_compar (const void *a, const void *b) |
Go to the source code of this file.
| INT4 sampleREAL4VectorAligned | ( | REAL4VectorAligned * | output, |
| const REAL4VectorAligned * | input, | ||
| const gsl_rng * | rng | ||
| ) |
Sample a number (sampleSize) of values from a REAL4VectorAligned (input) randomly.
| [out] | output | Pointer to output REAL4VectorAligned with length less than input |
| [in] | input | Pointer to a REAL4VectorAligned to be sampled from |
| [in] | rng | Pointer to a gsl_rng generator |
Definition at line 231 of file bin/TwoSpect/Statistics.c.
| REAL4VectorAligned * sampleREAL4VectorAlignedArray_nozerosaccepted | ( | const REAL4VectorAlignedArray * | input, |
| const UINT4 | numberofvectors, | ||
| const UINT4 | sampleSize, | ||
| const gsl_rng * | rng | ||
| ) |
Sample a number (sampleSize) of values from an REAL4VectorAlignedArray (input) randomly from vector 0 up to numberofvectors without accepting any values of zero Needs this numberofvectors limit because of the IHS algorithm.
| [in] | input | Pointer to a REAL4VectorAlignedArray to be sampled from |
| [in] | numberofvectors | Number of vectors from the start from which to sample from |
| [in] | sampleSize | Integer value for the length of the output vector |
| [in] | rng | Pointer to a gsl_rng generator |
Definition at line 249 of file bin/TwoSpect/Statistics.c.
| REAL8 calcMeanD | ( | const REAL8Vector * | vector | ) |
Compute the mean value of a REAL8Vector.
| [in] | vector | Pointer to a REAL8Vector of values |
Definition at line 434 of file bin/TwoSpect/Statistics.c.
| REAL8 calcStddevD | ( | const REAL8Vector * | vector | ) |
Compute the standard deviation of a REAL8Vector.
| [in] | vector | Pointer to a REAL8Vector of values |
Definition at line 446 of file bin/TwoSpect/Statistics.c.
Create a exponentially distributed noise value.
| [in] | mu | Mean value of the distribution |
| [in] | ptrToGenerator | Pointer to a gsl_rng generator |
Definition at line 40 of file bin/TwoSpect/Statistics.c.
| REAL4VectorAligned * expRandNumVector | ( | const UINT4 | length, |
| const REAL8 | mu, | ||
| const gsl_rng * | ptrToGenerator | ||
| ) |
Definition at line 46 of file bin/TwoSpect/Statistics.c.
| INT4 ks_test_exp | ( | REAL8 * | ksvalue, |
| const REAL4VectorAligned * | vector | ||
| ) |
KS test of data against an expected exponential distribution.
| [out] | ksvalue | Pointer to the KS value |
| [in] | vector | Pointer to the REAL4VectorAligned to compare against an exponential distribution |
Definition at line 73 of file bin/TwoSpect/Statistics.c.
| INT4 kuipers_test_exp | ( | REAL8 * | kuipervalue, |
| const REAL4VectorAligned * | vector | ||
| ) |
Kuiper's test of data against an expected exponential distribution.
| [out] | kuipervalue | Pointer to the Kuiper's test value |
| [in] | vector | Pointer to the REAL4VectorAligned to compare against an exponential distribution |
Definition at line 128 of file bin/TwoSpect/Statistics.c.
| REAL4 calcMean | ( | const REAL4VectorAligned * | vector | ) |
Compute the mean value of a REAL4VectorAligned, computed via recursion like in GSL.
| [in] | vector | Pointer to a REAL4VectorAligned of values |
Definition at line 272 of file bin/TwoSpect/Statistics.c.
| REAL4 calcMean_ignoreZeros | ( | const REAL4VectorAligned * | vector | ) |
Compute the mean value of a REAL4VectorAligned without accepting values of zero.
| [in] | vector | Pointer to a REAL4VectorAligned of values |
Definition at line 291 of file bin/TwoSpect/Statistics.c.
| INT4 calcHarmonicMean | ( | REAL4 * | harmonicMean, |
| const REAL4VectorAligned * | vector, | ||
| const UINT4 | numfbins, | ||
| const UINT4 | numffts | ||
| ) |
Compute the harmonic mean value of a REAL4VectorAligned of SFT values.
The harmonic mean is computed from the mean values of the SFTs
| [out] | harmonicMean | Pointer to the output REAL4 harmonic mean value |
| [in] | vector | Pointer to a REAL4Value from which to compute the harmonic mean |
| [in] | numfbins | Number of frequency bins in the SFTs |
| [in] | numffts | Number of SFTs during the observation time |
Definition at line 322 of file bin/TwoSpect/Statistics.c.
| INT4 calcStddev | ( | REAL4 * | sigma, |
| const REAL4VectorAligned * | vector | ||
| ) |
Compute the standard deviation of a REAL4VectorAligned.
| [out] | sigma | Pointer to the output standard deviation value |
| [in] | vector | Pointer to a REAL4VectorAligned of values |
Definition at line 355 of file bin/TwoSpect/Statistics.c.
| INT4 calcStddev_ignoreZeros | ( | REAL4 * | sigma, |
| const REAL4VectorAligned * | vector | ||
| ) |
Compute the standard deviation of a REAL4VectorAligned ignoring zero values.
| [out] | sigma | Pointer to the output standard deviation value |
| [in] | vector | Pointer to a REAL4VectorAligned of values |
Definition at line 378 of file bin/TwoSpect/Statistics.c.
| INT4 calcRms | ( | REAL4 * | rms, |
| const REAL4VectorAligned * | vector | ||
| ) |
Compute the RMS value of a REAL4VectorAligned.
| [out] | rms | Pointer to the output RMS value |
| [in] | vector | Pointer to a REAL4VectorAligned of values |
Definition at line 414 of file bin/TwoSpect/Statistics.c.
| INT4 calcMedian | ( | REAL4 * | median, |
| const REAL4VectorAligned * | vector | ||
| ) |
Calculate the median value from a REAL4VectorAligned.
| [out] | median | Pointer to the median value |
| [in] | vector | Pointer to a REAL4VectorAligned |
Definition at line 551 of file bin/TwoSpect/Statistics.c.
| INT4 sort_float_smallest | ( | REAL4VectorAligned * | output, |
| const REAL4VectorAligned * | input | ||
| ) |
Sort a REAL4VectorAligned, keeping the smallest of the values in the output vector.
| [out] | output | Pointer to a REAL4VectorAligned containing the output vector |
| [in] | input | Pointer to the REAL4VectorAligned from which to find the smallest values |
Definition at line 185 of file bin/TwoSpect/Statistics.c.
| void sort_double_ascend | ( | REAL8Vector * | vector | ) |
Sort a REAL8Vector in ascending order, modifying the input vector.
| [in,out] | vector | Pointer to a REAL8Vector to be sorted |
Definition at line 208 of file bin/TwoSpect/Statistics.c.
| void sort_float_ascend | ( | REAL4VectorAligned * | vector | ) |
Sort a REAL4VectorAligned in ascending order, modifying the input vector.
| [in,out] | vector | Pointer to a REAL4VectorAligned to be sorted |
Definition at line 218 of file bin/TwoSpect/Statistics.c.
| UINT4 max_index | ( | const REAL4VectorAligned * | vector | ) |
Determine the index value of the maximum value in a REAL4VectorAligned.
| [in] | vector | Pointer to REAL4VectorAligned of values |
Definition at line 458 of file bin/TwoSpect/Statistics.c.
| UINT4 max_index_double | ( | const REAL8Vector * | vector | ) |
Determine the index value of the maximum value in a REAL8Vector.
| [in] | vector | Pointer to REAL8Vector of values |
Definition at line 480 of file bin/TwoSpect/Statistics.c.
| UINT4 max_index_in_range | ( | const REAL4VectorAligned * | vector, |
| const UINT4 | startlocation, | ||
| const UINT4 | lastlocation | ||
| ) |
Determine the index value of the maximum value between elements of a REAL4VectorAligned (inclusive)
| [in] | vector | Pointer to REAL4VectorAligned of values |
| [in] | startlocation | Index value to start from in the REAL4VectorAligned |
| [in] | lastlocation | Index value to end at in the REAL4VectorAligned |
Definition at line 494 of file bin/TwoSpect/Statistics.c.
| INT4 min_max_index_INT4Vector | ( | const INT4Vector * | inputvector, |
| UINT4 * | min_index_out, | ||
| UINT4 * | max_index_out | ||
| ) |
Determine the index value of the maximum and minimum values in an INT4Vector.
| [in] | inputvector | Pointer to INT4Vector |
| [out] | min_index_out | Pointer to index value of smallest element |
| [out] | max_index_out | Pointer to index value of largest element |
Definition at line 522 of file bin/TwoSpect/Statistics.c.
Definition at line 575 of file bin/TwoSpect/Statistics.c.
Definition at line 588 of file bin/TwoSpect/Statistics.c.