gimme-alpha 0.1

density.h

Go to the documentation of this file.
00001 /*
00002 ** density.h
00003 ** 
00004 ** Made by Johnny Q. Hacker
00005 ** Login   <solarion@borkborkbork>
00006 
00007     Copyright (C) 2009 Joseph Pingenot
00008 
00009     This program is free software: you can redistribute it and/or modify
00010     it under the terms of the GNU Affero General Public License as published by
00011     the Free Software Foundation, either version 3 of the License, or
00012     (at your option) any later version.
00013 
00014     This program is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017     GNU Affero General Public License for more details.
00018 
00019     You should have received a copy of the GNU Affero General Public License
00020     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00021 
00022 ** Started on  Tue Mar  3 15:41:01 2009 Johnny Q. Hacker
00023 ** Last update Wed Oct  7 14:22:24 2009 Johnny Q. Hacker
00024 */
00025 
00026 #ifndef     DENSITY_H_
00027 # define    DENSITY_H_
00028 
00029 struct density_point {
00030   double x;
00031   double rho;
00032 };
00033 
00034 /*Integrates the density within the range xmin to xmax.*/
00035 double get_density_within_range(double xmin, double xmax, struct density_point *p, int len, short int type);
00036 /*Same, but uses two arrays of doubles instead of a single array of
00037   density point structs*/
00038 double get_density_within_range2(double xmin, double xmax, double x[], double rho[], int len);
00039 #endif      /* !DENSITY_H_ */
 All Classes Files Functions Variables Enumerations Enumerator Defines