00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkFEMUtility.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/05/30 19:09:28 $ 00007 Version: $Revision: 1.13 $ 00008 00009 Copyright (c) 2002 Insight Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkFEMUtility_h 00018 #define __itkFEMUtility_h 00019 00020 #include <string> 00021 #include <iostream> 00022 00023 namespace itk { 00024 namespace fem { 00025 00026 00027 00028 00045 class GaussIntegrate { 00046 public: 00047 static const double zero; 00048 static const double one; 00049 static const double two; 00050 static const double z[110]; 00051 static const double w[110]; 00052 double Integrate(double (*f)(double), double a, double b, int n=3); 00053 }; 00054 00055 00056 00057 00058 }} /* end namespace itk */ 00059 00060 #endif /* #ifndef __itkFEMUtility_h */