Alternaria
fit cylinders and ellipsoids to fungus
|
00001 /* 00002 * This work is licensed under a Creative Commons 00003 * Attribution-Noncommercial-Share Alike 3.0 United States License. 00004 * 00005 * http://creativecommons.org/licenses/by-nc-sa/3.0/us/ 00006 * 00007 * You are free: 00008 * 00009 * to Share - to copy, distribute, display, and perform the work 00010 * to Remix - to make derivative works 00011 * 00012 * Under the following conditions: 00013 * 00014 * Attribution. You must attribute the work in the manner specified by the 00015 * author or licensor (but not in any way that suggests that they endorse you 00016 * or your use of the work). 00017 * 00018 * Noncommercial. You may not use this work for commercial purposes. 00019 * 00020 * Share Alike. If you alter, transform, or build upon this work, you may 00021 * distribute the resulting work only under the same or similar license to 00022 * this one. 00023 * 00024 * For any reuse or distribution, you must make clear to others the license 00025 * terms of this work. The best way to do this is by including this header. 00026 * 00027 * Any of the above conditions can be waived if you get permission from the 00028 * copyright holder. 00029 * 00030 * Apart from the remix rights granted under this license, nothing in this 00031 * license impairs or restricts the author's moral rights. 00032 */ 00033 00034 00046 #ifndef PSF_MOVES_H 00047 #define PSF_MOVES_H 00048 00049 00050 #include <config.h> 00051 00052 #include <inttypes.h> 00053 00054 #include <jwsc++/base/exception.h> 00055 00056 #include "sampler.h" 00057 00058 00065 class PSF_move : public Sampler_diffusion_move 00066 { 00067 public: 00068 00070 PSF_move(const char* name, double prob=1.0) 00071 throw (jwscxx::base::Arg_error) 00072 : Sampler_diffusion_move(name, prob) { } 00073 00074 00076 bool run(Sampler_move_parameters* params) 00077 throw (jwscxx::base::Exception); 00078 00079 00085 const std::ostringstream& get_info(Sampler_move_parameters* params); 00086 00087 00093 const std::ostringstream& get_proposal_info 00094 ( 00095 Sampler_move_parameters* params 00096 ); 00097 }; 00098 00099 00105 class PSF_alpha_move : public Sampler_diffusion_move 00106 { 00107 public: 00108 00110 PSF_alpha_move(const char* name, double prob=1.0) 00111 throw (jwscxx::base::Arg_error) 00112 : Sampler_diffusion_move(name, prob) { } 00113 00114 00116 bool run(Sampler_move_parameters* params) 00117 throw (jwscxx::base::Exception); 00118 00119 00124 const std::ostringstream& get_info(Sampler_move_parameters* params); 00125 00126 00131 const std::ostringstream& get_proposal_info 00132 ( 00133 Sampler_move_parameters* params 00134 ); 00135 }; 00136 00137 00143 class PSF_beta_move : public Sampler_diffusion_move 00144 { 00145 public: 00146 00148 PSF_beta_move(const char* name, double prob=1.0) 00149 throw (jwscxx::base::Arg_error) 00150 : Sampler_diffusion_move(name, prob) { } 00151 00152 00154 bool run(Sampler_move_parameters* params) 00155 throw (jwscxx::base::Exception); 00156 00157 00162 const std::ostringstream& get_info(Sampler_move_parameters* params); 00163 00164 00169 const std::ostringstream& get_proposal_info 00170 ( 00171 Sampler_move_parameters* params 00172 ); 00173 }; 00174 00175 00181 class PSF_gamma_move : public Sampler_diffusion_move 00182 { 00183 public: 00184 00186 PSF_gamma_move(const char* name, double prob=1.0) 00187 throw (jwscxx::base::Arg_error) 00188 : Sampler_diffusion_move(name, prob) { } 00189 00190 00192 bool run(Sampler_move_parameters* params) 00193 throw (jwscxx::base::Exception); 00194 00195 00200 const std::ostringstream& get_info(Sampler_move_parameters* params); 00201 00202 00207 const std::ostringstream& get_proposal_info 00208 ( 00209 Sampler_move_parameters* params 00210 ); 00211 }; 00212 00213 00214 #endif