C++ Design Patterns for Managing Parameters in Scientific Computing
نویسنده
چکیده
A scientific computing module usually has many parameters to control its behaviors. Instantiate a pair of get/set functions for each parameter clutters the interface, incurs code-bloating, overburdens maintenance, and invites subtle bugs. To solve these problems, two patterns are proposed for parameter management. The “enumeration index” pattern is a simple solution for parameters of a single type. When the parameters belong to multiple types, it is difficult for a statically-typed language to access/modify these parameters using a single pair of get/set functions. The “parameter manager” pattern achieves this by templates and multiple inheritance. It also handles additional semantics such as constancy, dependency, and default values in an easy-to-use manner: a client only has to specify the set of parameters and their associated properties. Both patterns are illustrated by a common task of solving the diffusion equation in the C++ language.
منابع مشابه
Cloud Computing Technology Algorithms Capabilities in Managing and Processing Big Data in Business Organizations: MapReduce, Hadoop, Parallel Programming
The objective of this study is to verify the importance of the capabilities of cloud computing services in managing and analyzing big data in business organizations because the rapid development in the use of information technology in general and network technology in particular, has led to the trend of many organizations to make their applications available for use via electronic platforms hos...
متن کاملThe effect of injection parameters on dimensional accuracy of wax patterns for investment casting
Thermal expansion and hot deformation are two phenomena causing dimensional errors in investment casting. This error occurs in dimensions between the die and wax pattern. Therefore, the wax's thermo-physical and thermo-mechanical properties, the metal die features, and the process parameters affect the dimensions of the wax pattern. Some important effective process parameters are the injection ...
متن کاملDetermination of Cost Parameters in Total Design for Manufacturing Parts
Design process is a key process in forming of product’s cost and if we notify to total design we will see all of the effective parameters in design activities. Design process is contented design planning, design inputs, design outputs, design review, design verification, design validation and design changes. This approach will help us to identify the cost parameters for managing, controlling an...
متن کاملDesign Patterns for Generic Object-Oriented Scientific Software
Design patterns in software engineering have been proven to offer great benefits, and scientific software is no exception. Especially as scientific software becomes more object-oriented, the importance of design patterns cannot be underestimated. We present a set of design patterns for scientific computing implemented in C++, apply them to two example object-oriented frameworks, and demonstrate...
متن کاملApplication of statistical techniques and artificial neural network to estimate force from sEMG signals
This paper presents an application of design of experiments techniques to determine the optimized parameters of artificial neural network (ANN), which are used to estimate force from Electromyogram (sEMG) signals. The accuracy of ANN model is highly dependent on the network parameters settings. There are plenty of algorithms that are used to obtain the optimal ANN setting. However, to the best ...
متن کامل