1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
/* $Id: kmo_priv_stats.h,v 1.3 2012-06-29 10:26:44 aagudo Exp $
*
* This file is part of the KMOS Pipeline
* Copyright (C) 2002,2003 European Southern Observatory
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* $Author: aagudo $
* $Date: 2012-06-29 10:26:44 $
* $Revision: 1.3 $
* $Name: not supported by cvs2svn $
*/
#ifndef KMOS_PRIV_STATS_H
#define KMOS_PRIV_STATS_H
/*-----------------------------------------------------------------------------
* Includes
*----------------------------------------------------------------------------*/
#include <cpl.h>
#include "kmclipm_vector.h"
/*------------------------------------------------------------------------------
* Prototypes
*----------------------------------------------------------------------------*/
kmclipm_vector* kmo_calc_stats_cube(const cpl_imagelist *data,
const cpl_image *mask,
double cpos_rej,
double cneg_rej,
int citer);
kmclipm_vector* kmo_calc_stats_img(const cpl_image *data,
const cpl_image *mask,
double cpos_rej,
double cneg_rej,
int citer);
kmclipm_vector* kmo_calc_stats_vec(kmclipm_vector *data,
kmclipm_vector *mask,
double cpos_rej,
double cneg_rej,
int citer);
int kmo_count_masked_pixels(const cpl_image *mask);
cpl_vector* kmo_vector_identify_infinite(const cpl_vector *vec);
kmclipm_vector* kmo_imagelist_to_vector(
const cpl_imagelist *imglist,
const cpl_image *mask,
int *nr_mask_pix);
kmclipm_vector* kmo_image_to_vector(
const cpl_image *img,
const cpl_image *mask,
int *nr_mask_pix);
cpl_error_code kmo_calc_mode(
const kmclipm_vector *data,
double *mode,
double *noise,
double cpos_rej,
double cneg_rej,
int citer);
cpl_vector* kmo_reject_sigma(const cpl_vector *d,
double center,
double high,
double low,
double dev,
cpl_vector **ret_index);
cpl_error_code kmo_calc_remaining(
kmclipm_vector *data_in_vec,
kmclipm_vector *data_out,
double cpos_rej,
double cneg_rej,
int citer, int nr_finite);
#endif /* KMOS_PRIV_STATS_H */
|