00001 /* -*- mode: C++ -*- */ 00002 /* 00003 * Copyright (C) 2007, 2010 Patrick Beeson 00004 * 00005 * License: Modified BSD Software License Agreement 00006 * 00007 * $Id: gaussian.h 88 2010-03-26 04:34:50Z jack.oquin $ 00008 */ 00009 00019 #ifndef gaussian_hh 00020 #define gaussian_hh 00021 00022 class gaussian { 00023 public: 00024 gaussian(); 00025 gaussian(float,float); 00026 float get_sample_1D(); 00027 00028 private: 00029 bool _ready; //<! when getting sample, two are actually computed. 00030 //<! this flag tells us if one is waiting. 00031 float _mean1, _var1, _std1; 00032 }; 00033 00034 #endif