Thursday, February 17, 2011

MCTS .NET Application Development Foundation - 70-536 – Objectives List Part 5 (Improving the security of .NET Framework applications by using the .NET Framework security features)

Implement code access security to improve the security of a .NET Framework application.
Implement access control by using the System.Security.AccessControl classes.
Implement a custom authentication scheme by using the System.Security.Authentication classes.
Encrypt, decrypt, and hash data by using the System.Security.Cryptography classes.
Control permissions for resources by using the System.Security.Permission classes.
Control code privileges by using System.Security.Policy classes.
Access and modify identity information by using the System.Security.Principal classes.

Wednesday, February 16, 2011

MCTS .NET Application Development Foundation - 70-536 – Objectives List Part 4 (Implementing serialization and input/output functionality in a .NET Framework application)

Serialize or deserialize an object or an object graph by using runtime serialization techniques.
Control the serialization of an object into XML format by using the System.Xml.Serialization namespace.
Implement custom serialization formatting by using the Serialization Formatter classes.
Access files and folders by using the File System classes.
Manage byte streams by using Stream classes.
Manage the .NET Framework application data by using Reader and Writer classes.
Compress or decompress stream information in a .NET Framework application and improve the security of application data by using isolated storage.

MCTS .NET Application Development Foundation - 70-536 – Objectives List Part 3 (Embedding configuration, diagnostic, management, and installation features into a .NET Framework application)

Embed configuration management functionality into a .NET Framework application.
Create a custom Microsoft Windows Installer for the .NET Framework components by using the System.Configuration.Install namespace, and configure the .NET Framework applications by using configuration files, environment variables, and the .NET Framework Configuration tool (Mscorcfg.msc).
Manage an event log by using the System.Diagnostics namespace.
Manage system processes and monitor the performance of a .NET Framework application by using the diagnostics functionality of the .NET Framework 2.0.
Debug and trace a .NET Framework application by using the System.Diagnostics namespace.
Embed management information and events into a .NET Framework application.

MCTS .NET Application Development Foundation - 70-536 – Objectives List Part 2 (Implementing service processes, threading, and application domains in a .NET Framework application)

Implement, install, and control a service.
Develop multithreaded .NET Framework applications.
Create a unit of isolation for common language runtime in a .NET Framework application by using application domains.

MCTS .NET Application Development Foundation - 70-536 – Objectives List Part 1 (Developing applications that use system types and collections)

Manage data in a .NET Framework application by using the .NET Framework 2.0 system types
Manage a group of associated data in a .NET Framework application by using collections
Improve type safety and application performance in a .NET Framework application by using generic collections
Manage data in a .NET Framework application by using specialized collections
Implement .NET Framework interfaces to cause components to comply with standard contracts
Control interactions between .NET Framework application components by using events and delegates

Thursday, January 27, 2011

Least Squares Fitting--Exponential

Let's consider following functional form:
A and B coefficients are given by formulas: B = b and A = exp(a) where:

a=

and

b=

Thursday, January 20, 2011

Least Squares Fitting

The term least squares describes a frequently used approach to solving overdetermined or inexactly specified systems of equations in an approximate sense. Instead of solving the equations exactly, we seek only to minimize the sum of the squares of the residuals.
The least squares criterion has important statistical interpretations. If appropriate probabilistic assumptions about underlying error distributions are made, least squares produces what is known as the maximum-likelihood estimate of the parameters. Even if the probabilistic assumptions are not satisfied, years of experience
have shown that least squares produces useful results.
The computational techniques for linear least squares problems make use of orthogonal matrix factorizations.
Lets consider function:
for estimation of coefficients a and b we can use following equations:




double sumY = 0;
double sumX = 0;
double sumXY = 0;
double sumX2 = 0;

foreach (Sample s in samples)
{
    sumY = sumY + s.y;
    sumX = sumX + s.x;
    sumX2 = sumX2 + s.x * s.x;
    sumXY = sumXY + s.x * s.y;
}

double a = (sumY * sumX2 - sumX * sumXY) / (samples.Count * sumX2 - (sumX * sumX));
double b = (samples.Count * sumXY - (sumX * sumY)) / (samples.Count * sumX2 - (sumX * sumX));