Numerics.NET Quickstart Samples
To get you started right away with creating your own statistical applications using Numerics.NET, we are providing these QuickStart Samples. See our Sample Applications page for some real-life applications.
Data Analysis
Data Frames
Illustrates how to create and manipulate data frames using classes in the Numerics.NET.DataAnalysis namespace.
View code in: C# Visual Basic F#
Indexes and Labels
Illustrates how to use indexes to label the rows and columns of a data frame or matrix, or the elements of a vector.
View code in: C# Visual Basic F#
Data Wrangling
Illustrates how to perform basic data wrangling or data munging operations on data frames using classes in the Numerics.NET.DataAnalysis namespace.
View code in: C# Visual Basic F#
Manipulating Columns
Illustrates how to transform and manipulate the columns of a data frame.
View code in: C# Visual Basic F#
Sorting and Filtering
Illustrates how to sort and filter data used for data analysis.
View code in: C# Visual Basic F# IronPython
Grouping and Aggregation
Illustrates how to group data and how to compute aggregates over groups and entire datasets..
View code in: C# Visual Basic F#
Histograms
Illustrates how to create histograms using the Histogram class in the Numerics.NET.DataAnalysis namespace.
View code in: C# Visual Basic F# IronPython
Mathematics
General
Complex Numbers
Illustrates how to work with complex numbers using the DoubleComplex structure.
View code in: C# Visual Basic F# IronPython
Elementary Functions
Illustrates how to use additional elementary functions.
View code in: C# Visual Basic F# IronPython
BigNumbers
Illustrates the basic use of the arbitrary precision classes: BigInteger, BigRational, BigFloat.
View code in: C# Visual Basic F# IronPython
Prime Numbers
Illustrates working with prime numbers and the IntegerMath class in the Numerics.NET namespace.
View code in: C# Visual Basic F# IronPython
FFT/Fourier Transforms
Illustrates how to compute the forward and inverse Fourier transform of a real or complex signal using classes in the Numerics.NET.SignalProcessing namespace.
View code in: C# Visual Basic F# IronPython
Generic Algorithms
Illustrates how to write algorithms that are generic over the numerical type of the arguments.
View code in: C# Visual Basic F#
Calculus
Basic Integration
Illustrates the basic numerical integration classes.
View code in: C# Visual Basic F# IronPython
Advanced Integration
Illustrates more advanced numerical integration using the AdaptiveIntegrator class.
View code in: C# Visual Basic F# IronPython
Higher Dimensional Numerical Integration
Illustrates numerical integration of functions in higher dimensions using classes in the Numerics.NET.Calculus namespace.
View code in: C# Visual Basic F# IronPython
Numerical Differentiation
Illustrates how to approximate the derivative of a function.
View code in: C# Visual Basic F# IronPython
Differential Equations
Illustrates integrating systems of ordinary differential equations (ODE's).
View code in: C# Visual Basic F# IronPython
Curves
Basic Polynomials
Illustrates the basic use of the Polynomial class .
View code in: C# Visual Basic F# IronPython
Advanced Polynomials
Illustrates more advanced uses of the Polynomial class, including real and complex root finding, calculating least squares polynomials and polynomial arithmetic.
View code in: C# Visual Basic F# IronPython
Chebyshev Series
Illustrates the basic use of the ChebyshevSeries class .
View code in: C# Visual Basic F# IronPython
Curve Fitting and Interpolation
Linear Curve Fitting
Illustrates how to fit linear combinations of curves to data using the LinearCurveFitter class and other classes in the Numerics.NET.Curves namespace.
View code in: C# Visual Basic F# IronPython
Nonlinear Curve Fitting
Illustrates nonlinear least squares curve fitting of predefined and user-defined curves using the NonlinearCurveFitter class.
View code in: C# Visual Basic F# IronPython
Piecewise Curves
Illustrates working with piecewise constant and piecewise linear curves using classes from the Numerics.NET.Curves namespace.
View code in: C# Visual Basic F# IronPython
Cubic Splines
Illustrates using natural and clamped cubic splines for interpolation using classes in the Numerics.NET.LinearAlgebra namespace.
View code in: C# Visual Basic F# IronPython
Solving Equations
Newton-Raphson Equation Solver
Illustrates the use of the NewtonRaphsonSolver class for solving equations in one variable and related functions for numerical differentiation.
View code in: C# Visual Basic F# IronPython
Root Bracketing Solvers
Illustrates the use of the root bracketing solvers for solving equations in one variable.
View code in: C# Visual Basic F# IronPython
Nonlinear Systems
Illustrates the use of the NewtonRaphsonSystemSolver and DoglegSystemSolver classes for solving systems of nonlinear equations.
View code in: C# Visual Basic F# IronPython
Optimization
Optimization In One Dimension
Illustrates the use of the Brent and Golden Section optimizer classes in the Numerics.NET.Optimization namespace for one-dimensional optimization.
View code in: C# Visual Basic F# IronPython
Optimization In Multiple Dimensions
Illustrates the use of the multi-dimensional optimizer classes in the Numerics.NET.Optimization namespace for optimization in multiple dimensions.
View code in: C# Visual Basic F# IronPython
Linear Programming
Illustrates solving linear programming (LP) problems using classes in the Numerics.NET.Optimization.LinearProgramming namespace.
View code in: C# Visual Basic F# IronPython
Mixed Integer Programming
Illustrates how to solve mixed integer programming by solving Sudoku puzzles using the linear programming solver.
View code in: C# Visual Basic F# IronPython
Quadratic Programming
Illustrates how to solve optimization problems a quadratic objective function and linear constraints using classes in the Numerics.NET.Optimization namespace.
View code in: C# Visual Basic F# IronPython
Nonlinear Programming
Illustrates solving nonlinear programs (optimization problems with linear or nonlinear constraints) using the NonlinearProgram and related classes.
View code in: C# Visual Basic F# IronPython
Random numbers and Quasi-Random Sequences
Random Number Generators
Illustrates how to use specialized random number generator classes in the Numerics.NET.Statistics.Random namespace.
View code in: C# Visual Basic F# IronPython
Non-Uniform Random Numbers
Illustrates how to generate random numbers from a non-uniform distribution.
View code in: C# Visual Basic F# IronPython
Quasi-Random Sequences
Illustrates how to generate quasi-random sequences like Fauré and Sobol sequences using classes in the Numerics.NET.Statistics.Random namespace.
View code in: C# Visual Basic F# IronPython
Linear Algebra
Vectors
Basic Vectors
Illustrates the basic use of the Vector class for working with vectors.
View code in: C# Visual Basic F# IronPython
Vector Operations
Illustrates how to perform operations on Vector objects, including construction, element access, arithmetic operations.
View code in: C# Visual Basic F# IronPython
Matrices
Basic Matrices
Illustrates the basic use of the Matrix class for working with matrices.
View code in: C# Visual Basic F# IronPython
Accessing Matrix Elements
Illustrates different ways of iterating through the rows and columns of a matrix using classes in the Numerics.NET.LinearAlgebra namespace.
View code in: C# Visual Basic F# IronPython
Matrix-Vector Operations
Illustrates how to perform operations that involve both matrices and vectors.
View code in: C# Visual Basic F# IronPython
Triangular Matrices
Illustrates how to work efficiently with upper or lower triangular or trapezoidal matrices.
View code in: C# Visual Basic F# IronPython
Symmetric Matrices
Illustrates how to work efficiently with symmetric matrices.
View code in: C# Visual Basic F# IronPython
Band Matrices
Illustrates how to work with the BandMatrix class.
View code in: C# Visual Basic F# IronPython
Sparse Matrices
Illustrates using sparse vectors and matrices using the classes in the Numerics.NET.LinearAlgebra.Sparse namespace.
View code in: C# Visual Basic F# IronPython
Matrix Decompositions
Illustrates how compute various decompositions of a matrix using classes in the Numerics.NET.LinearAlgebra namespace.
View code in: C# Visual Basic F# IronPython
Solving Equations and Least Squares
Linear Equations
Illustrates how to solve systems of simultaneous linear equations.
View code in: C# Visual Basic F# IronPython
Structured Linear Equations
Illustrates how to solve systems of simultaneous linear equations that have special structure.
View code in: C# Visual Basic F# IronPython
Iterative Sparse Solvers
Illustrates the use of iterative sparse solvers and preconditioners for efficiently solving large, sparse systems of linear equations.
View code in: C# Visual Basic F# IronPython
Least Squares
Illustrates how to solve least squares problems using classes in the Numerics.NET.LinearAlgebra namespace.
View code in: C# Visual Basic F# IronPython
Tensors
Basic Tensors
Illustrates the basic use of the Tensor class for working with tensors.
View code in: C# Visual Basic F#
Accessing Tensor Elements
Illustrates different ways of accessing elements of a tensor and sub-tensors using classes in the Numerics.NET.Tensors namespace.
View code in: C# Visual Basic F#
Tensor Operations
Illustrates how to perform operations on tensors.
View code in: C# Visual Basic F#
Statistics
Probability Distributions
Discrete Distributions
Illustrates how to use the classes that represent discrete probability distributions in the Numerics.NET.Statistics.Distributions namespace.
View code in: C# Visual Basic F# IronPython
Continuous Distributions
Illustrates how to use the classes that represent continuous probability distributions in the Numerics.NET.Statistics.Distributions namespace.
View code in: C# Visual Basic F# IronPython
Analysis of Variance
One-Way Anova
Illustrates how to use the OneWayAnovaModel class to perform a one-way analysis of variance.
View code in: C# Visual Basic F# IronPython
Repeated Measures Anova
Illustrates how to use the OneWayRAnovaModel class to perform a one-way analysis of variance with repeated measures.
View code in: C# Visual Basic F# IronPython
Two-Way Anova
Illustrates how to use the TwoWayAnovaModel class to perform a two-way analysis of variance.
View code in: C# Visual Basic F# IronPython
Regression Analysis
Simple Regression
Illustrates how to perform a simple linear regression using the SimpleRegressionModel class.
View code in: C# Visual Basic F# IronPython
Multiple Linear Regression
Illustrates how to use the LinearRegressionModel class to perform a multiple linear regression.
View code in: C# Visual Basic F# IronPython
Polynomial Regression
Illustrates how to fit data to polynomials using the PolynomialRegressionModel class.
View code in: C# Visual Basic F# IronPython
Logistic Regression
Illustrates how to use the LogisticRegressionModel class to create logistic regression models.
View code in: C# Visual Basic F# IronPython
Generalized Linear Models
Illustrates how to use the GeneralizedLinearModel class to compute probit, Poisson and similar regression models.
View code in: C# Visual Basic F#
Time Series Analysis
Simple Time Series
Illustrates how to perform simple operations on time series data using classes in the Numerics.NET.Statistics.TimeSeriesAnalysis namespace.
View code in: C# Visual Basic F# IronPython
Variable Transformations
Illustrates how to perform a range of transformations on statistical data.
View code in: C# Visual Basic F# IronPython
ARIMA Models
Illustrates how to work with ARIMA time series models using classes in the Numerics.NET.Statistics.TimeSeriesAnalysis namespace.
View code in: C# Visual Basic F# IronPython
Multivariate Analysis
Cluster Analysis
Illustrates how to use the classes in the Numerics.NET.Statistics.Multivariate namespace to perform hierarchical clustering and K-means clustering.
View code in: C# Visual Basic F# IronPython
Principal Component Analysis (PCA)
Illustrates how to perform a Principal Component Analysis using classes in the Numerics.NET.Statistics.Multivariate namespace.
View code in: C# Visual Basic F# IronPython
Factor Analysis (FA)
Illustrates how to perform a Factor Analysis using classes in the Numerics.NET.Statistics.Multivariate namespace.
View code in: C# Visual Basic F#
Hypothesis Tests
Mean Tests
Illustrates how to use various tests for the mean of one or more sanples using classes in the Numerics.NET.Statistics.Tests namespace.
View code in: C# Visual Basic F# IronPython
Variance Tests
Illustrates how to perform hypothesis tests involving the standard deviation or variance using classes in our .NET statistical library.
View code in: C# Visual Basic F# IronPython
Goodness-Of-Fit Tests
Illustrates how to test for goodness-of-fit using classes in the Numerics.NET.Statistics.Tests namespace.
View code in: C# Visual Basic F# IronPython
Homogeneity Of Variances Tests
Illustrates how to test a collection of variables for equal variances using classes in the Numerics.NET.Statistics.Tests namespace.
View code in: C# Visual Basic F# IronPython
Non-Parametric Tests
Illustrates how to perform non-parametric tests like the Wilcoxon-Mann-Whitney test and the Kruskal-Wallis test.
View code in: C# Visual Basic F# IronPython