Essential Math Module User’s Guide
Chapter 1 Introduction
1.1 Welcome
1.2 Product Features
1.3 Products and Services Information
Chapter 2 Templatized Collection Classes
2.1 Templates Defined
2.1.1 Pros and Cons of Templates
2.1.2 Template Specializations
2.2 Nonstandard Numeric Types
2.2.1 Defining a New Numeric Type
2.2.2 Adding New Numeric Types
2.2.2.1 Modifying the Numeric Trait Information
2.2.2.2 Adding Global and Specialized Functions
2.3 Iterators
2.3.1 Uses of Iterators
Chapter 3 Vector, Matrix, and Array Classes
3.1 Overview
3.2 Some Simple Examples
3.2.1 Vectors
3.2.2 Matrix Example
3.2.3 An Array Example
3.3 Data and Views
3.4 Copy Constructor
3.5 Assignment
3.6 Construction Versus Assignment
3.7 Function reference()
3.8 Vector Copies
3.9 Subscripting
3.9.1 Subscripting with Character Strings
3.9.2 Advanced Subscripting
3.10 Picks
3.11 Arrays of Signed and Unsigned Chars
3.12 Data Storage Schemes
3.13 High Dimension Arrays
Chapter 4 FFT Servers
4.1 Overview
4.2 Transforms of Real Sequences
4.3 Transforms of Even and Odd Sequences
Chapter 5 Linear Algebra Classes
5.1 Overview
5.2 LU Factorization
5.3 Condition Number
Chapter 6 Statistics Classes
6.1 Random Number Generators
6.2 Class Histogram
6.3 Class LeastSqFit
Chapter 7 Persistence
7.1 Overview
7.2 A Simple Example Using Streams
Chapter 8 Technical Notes
8.1 Errors
8.1.1 Violated Preconditions
8.1.2 Invalid Input
8.1.3 Asynchronous Errors
8.1.4 Exception Hierarchy
8.1.5 Error Handlers
8.1.6 Error Numbers and Messages
8.2 Efficiency
8.2.1 Slices
8.2.2 Overall Efficiency
8.3 Basic Linear Algebra Package
Chapter 9 Examples
9.1 Overview
9.2 Example Using the Vector Classes
9.3 Example Using the Matrix Classes
9.4 Example Using the FFT Server Class
9.5 Type Conversion Example
9.6 Example with saveOn()and restoreFrom()
9.7 Class Derivation Example
9.8 Linear Algebra Example
9.9 Example with Multiple Inheritance and Runtime Binding
9.10 Random Number Generator Example
9.11 User-Defined Type Example
Business Analysis Module User’s Guide
Chapter 1 Introduction
1.1 Welcome
1.2 Product Features
1.3 Products and Services Information
Chapter 2 Library Architecture
2.1 Components
2.2 Regression Classes
2.3 Parameter Calculation Classes
2.3.1 The Base Calculation
2.4 Model Selection Classes
Chapter 3 Definitions
3.1 Note
3.2 Multiple Linear Regression
3.2.1 Parameter Calculation by Least Squares Minimization
3.2.2 Model Variance
3.2.3 Parameter Dispersion (Variance-Covariance) Matrix
3.2.4 Significance of the Model (Overall F Statistic)
3.2.4.1 p-Value
3.2.4.2 Critical Value
3.2.5 Significance of Predictor Variables
3.2.5.1 p-Values
3.2.5.2 Critical Values
3.2.6 Prediction Intervals
3.3 Logistic Regression
3.3.1 Parameter Calculation
3.3.2 Parameter Variances and Covariances
3.3.3 Significance of the Model
3.3.3.1 G Statistic
3.3.3.2 Pearson Statistic
3.3.3.3 Hosmer-Lemeshow Statistic
3.3.4 Parameter Significance (Wald Test)
3.3.4.1 p-Values
3.3.4.2 Critical Values
Chapter 4 Model Selection
4.1 Definition
4.2 Model Selection Viewed As Search
4.2.1 Exhaustive Search
4.2.2 Forward Selection
4.2.3 Backward Selection
4.2.4 Stepwise Selection
Chapter 5 Using the Classes
5.1 Overview
5.2 Regression Classes
5.2.1 Updating Parameter Estimates
5.2.2 Intercept Option
5.3 Parameter Estimate Classes
5.4 Regression Analysis Classes
5.4.1 Class RWLinearRegressionANOVA
5.4.2 Class RWLogisticFitAnalysis
5.4.3 Class RWLinearRegressionFTest
5.5 Parameter Calculation Classes
5.5.1 Calculation Methods for Linear Regression
5.5.1.1 RWLeastSqQRCalc
5.5.1.2 RWLeastSqQRPvtCalc
5.5.1.3 RWLeastSqSVDCalc
5.5.2 Calculation Methods for Logistic Regression
5.5.2.1 RWLogisticIterLSQ
5.5.2.2 RWLogisticLevenbergMarquardt
5.5.3 Writing Your Own Parameter Calculation Class
5.6 Using the Model Selection Classes
5.6.1 Selection Evaluation Criteria: Function Objects
5.6.2 A Detailed Example
5.6.3 Writing Your Own Function Objects
Currency Module User’s Guide
Chapter 1 Introduction
1.1 Welcome
1.2 Product Features
1.3 Products and Services Information
Chapter 2 Product Overview
2.1 Currency Classes
2.2 Money Class
2.3 Money Calculator Class
2.4 Conversion Classes
2.5 Decimal Classes
2.6 Formatting Class
2.7 Strings in Currency Module
2.8 Persistence
2.9 Classes in Currency Module
2.10 Currency Module Examples
2.10.1 Building and Running the Currency Examples
Chapter 3 Using the Currency Class
3.1 Introduction
3.2 Currency Information Class
3.3 Collections of Currencies
3.3.1 Available Currencies
3.3.2 Initializing a Currency Book
3.3.3 Adding, Deleting, and Searching for Currencies
Chapter 4 Money and Calculations
4.1 Introduction
4.2 Attaching a Currency to a Value
4.3 Same-Currency Calculations
4.4 Mixed-Currency Calculations
4.4.1 Setting the Conversion Policy
4.4.2 Setting the Precision and Rounding Method
4.5 Supported Money Decimal Types
Chapter 5 Currency Conversions
5.1 Introduction
5.2 Exchange Rates and Exchange Rate Tables
5.3 Currency Exchange Classes
5.4 Currency Exchange Groups
5.5 Currency Exchange Factory
5.6 Performing Currency Exchanges
5.7 Creating Custom Exchange Objects and Groups
5.7.1 Class USDollarBaseExchange
5.7.2 Class USDollarBaseGroup
5.7.3 Using the Custom Classes
5.8 The Exchange Class Hierarchies
Chapter 6 Decimal Classes
6.1 Overview
6.2 How Decimal Values Are Represented
6.3 Precision
6.3.1 Class RWMultiPrecisionInt<n>
6.3.2 RWMP1Int, RWMP2Int, and RWMP3Int Integer Types
6.3.3 Fixed and Floating Decimal Classes
6.4 Decimal Arithmetic
6.5 Special Values
6.6 Rounding
6.7 Conversions
6.7.1 Conversion from Integers and Strings
6.7.2 Conversion from Built-In Floating Point
6.7.3 Conversion to Built-In Types
Chapter 7 Formatting for Output
7.1 Overview
7.2 Formatting Numbers
7.2.1 Using Pictures
7.2.2 Advanced Pictures
7.2.3 Code Positions in Pictures
7.2.4 Embedding Pictures in Sentences
7.3 Formatter Objects
Chapter 8 Errors and Error‑Handling
8.1 Overview
8.2 Overflow Conditions
8.3 Inexact Conditions
8.4 Error-Handling
8.4.1 Installing an Inexact Error Handler
8.4.2 Installing an Overflow Error Handler
8.5 Error Objects
Chapter 9 Technical Notes
9.1 Localization
9.2 Base 2 Representation of Decimal Fractions
9.3 Input Format Grammar
9.4 Multithread Safety
Appendix A Currency Book Initialization File
A.1 Currency Book Initialization File
Linear Algebra Module User’s Guide
Chapter 1 Introduction
1.1 Welcome
1.2 Product Features
1.3 Products and Services Information
Chapter 2 Class Overview
2.1 The Class Concept
2.2 Kinds of Classes
2.2.1 A Note on Terminology
2.3 Class Groups of the Linear Algebra Module
2.3.1 Math Vector Classes
2.3.2 Sparse Matrix Classes
2.3.3 Factorization Classes
2.3.4 Symmetric Eigenvalue Decomposition Classes
2.3.5 Nonsymmetric Eigenvalue Decomposition Classes
2.3.6 Least Squares Factorization Classes
2.3.7 Decomposition Classes
Chapter 3 Vectors and Matrices
3.1 Defining Vectors
3.2 Defining Matrices
3.3 Matrix Precision and Shape
3.4 Copy Constructors: References and Copies
3.5 Accessing Data
3.5.1 Individual Elements
3.5.2 Bounds Checking
3.5.3 Changing Elements with operator()()
3.5.4 val() and set()
3.5.5 Rows, Columns and Diagonals
3.5.6 Components of Complex Matrices
3.5.7 Direct Access to Data
3.6 Type Conversion
3.6.1 Converting Precisions
3.6.2 Converting Shapes
3.7 Submatrices
3.7.1 General Matrices
3.7.2 Leading Submatrices
Chapter 4 Factorizations
4.1 Defining Factorizations
4.2 Solving a System of Equations
4.2.1 Error Checking
4.3 Solving Several Systems of Equations
4.4 Calculating the Determinant, Inverse, and Condition Number
4.4.1 Determinants
4.4.2 Matrix Inverses
4.4.3 Condition Number
Chapter 5 Least Squares Factorizations
5.1 Defining the Problem
5.2 Solving a Least Squares Problem
5.3 Implementations Provided
5.4 Solving a Numerically Underdetermined System
Chapter 6 Symmetric Eigenvalue Problems
6.1 Defining the Problem
6.2 Decomposition Object
6.3 Servers
6.4 Computing Selected Eigenvalues
Chapter 7 Nonsymmetric EigenvalueProblems
7.1 Defining the Problem
7.2 Decomposition Object
7.3 Servers
7.4 Schur Decompositions
7.5 Hessenberg and Balance Decompositions
Chapter 8 Other Decompositions
8.1 Kinds of Decompositions
8.2 Singular Value Decomposition
8.2.1 SVD Server Objects
8.3 QR Decomposition and Complete Orthogonal Decomposition
8.3.1 Complete Orthogonal Decomposition
Chapter 9 Technical Notes
9.1 Function operator()(int, int)
9.2 Matrix Entry Helper Classes
9.3 Helper Class Member Functions
9.4 Basic Linear Algebra Package
Essential Math Module User’s Guide
9.4 Basic Linear Algebra Package