"Fossies" - the Fresh Open Source Software Archive

Member "gnuastro-0.8/lib/gnuastro/interpolate.h" (30 May 2018, 2486 Bytes) of package /linux/privat/gnuastro-0.8.tar.lz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "interpolate.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 0.5_vs_0.6.

    1 /*********************************************************************
    2 tile -- work with tesselations over a host dataset.
    3 This is part of GNU Astronomy Utilities (Gnuastro) package.
    4 
    5 Original author:
    6      Mohammad Akhlaghi <mohammad@akhlaghi.org>
    7 Contributing author(s):
    8 Copyright (C) 2017-2018, Free Software Foundation, Inc.
    9 
   10 Gnuastro is free software: you can redistribute it and/or modify it
   11 under the terms of the GNU General Public License as published by the
   12 Free Software Foundation, either version 3 of the License, or (at your
   13 option) any later version.
   14 
   15 Gnuastro is distributed in the hope that it will be useful, but
   16 WITHOUT ANY WARRANTY; without even the implied warranty of
   17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   18 General Public License for more details.
   19 
   20 You should have received a copy of the GNU General Public License
   21 along with Gnuastro. If not, see <http://www.gnu.org/licenses/>.
   22 **********************************************************************/
   23 #ifndef __GAL_INTERPOLATE_H__
   24 #define __GAL_INTERPOLATE_H__
   25 
   26 /* Include other headers if necessary here. Note that other header files
   27    must be included before the C++ preparations below */
   28 #include <gnuastro/data.h>
   29 #include <gnuastro/tile.h>
   30 #include <gsl/gsl_spline.h>
   31 
   32 /* C++ Preparations */
   33 #undef __BEGIN_C_DECLS
   34 #undef __END_C_DECLS
   35 #ifdef __cplusplus
   36 # define __BEGIN_C_DECLS extern "C" {
   37 # define __END_C_DECLS }
   38 #else
   39 # define __BEGIN_C_DECLS                /* empty */
   40 # define __END_C_DECLS                  /* empty */
   41 #endif
   42 /* End of C++ preparations */
   43 
   44 /* Actual header contants (the above were for the Pre-processor). */
   45 __BEGIN_C_DECLS  /* From C++ preparations */
   46 
   47 
   48 
   49 /* Types of interpolation. */
   50 enum gal_interpolate_1D_types
   51 {
   52  GAL_INTERPOLATE_1D_INVALID,
   53 
   54  GAL_INTERPOLATE_1D_LINEAR,
   55  GAL_INTERPOLATE_1D_POLYNOMIAL,
   56  GAL_INTERPOLATE_1D_CSPLINE,
   57  GAL_INTERPOLATE_1D_CSPLINE_PERIODIC,
   58  GAL_INTERPOLATE_1D_AKIMA,
   59  GAL_INTERPOLATE_1D_AKIMA_PERIODIC,
   60  GAL_INTERPOLATE_1D_STEFFEN,
   61 };
   62 
   63 
   64 
   65 gal_data_t *
   66 gal_interpolate_close_neighbors(gal_data_t *input,
   67                                 struct gal_tile_two_layer_params *tl,
   68                                 size_t numneighbors, size_t numthreads,
   69                                 int onlyblank, int aslinkedlist);
   70 
   71 gsl_spline *
   72 gal_interpolate_1d_make_gsl_spline(gal_data_t *X, gal_data_t *Y, int type_1d);
   73 
   74 void
   75 gal_interpolate_1d_blank(gal_data_t *in, int type_1d);
   76 
   77 
   78 __END_C_DECLS    /* From C++ preparations */
   79 
   80 #endif