PHP Classes

Linear Calibration: Perform substance linear and weighted calibration

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 64 All time: 10,406 This week: 455Up
Version License PHP version Categories
linear-calibration 1.0GNU General Publi...5.0PHP 5, Statistics
Description 

Author

This class can perform substance linear and weighted calibration.

It takes as parameters an array with the substance concentration values, the instrumental response, the confidence interval and the concentration weights.

The class can perform the necessary calculations and return the calibration curve slope and other related values.

This class uses different standards and requirements in analytical chemistry defined in:

- Handbook of Chemo-metrics and Qualimetrics: Part A
- ICH guides
- FDA guides
- CIPAC guides
- ISO 8466-1
- ISO 11095
- ISO 11843-2

Innovation Award
PHP Programming Innovation award nominee
March 2016
Number 16


Prize: One downloadable copy of CodeLobster Professional
A calibration curve is used in chemistry to determine the concentration of a substance in a sample.

This class can perform calculations with substance concentration and calibration.

Manuel Lemos
Picture of Jose Manuel
  Performance   Level  
Name: Jose Manuel <contact>
Classes: 3 packages by
Country: Spain Spain
Age: 49
All time rank: 4049110 in Spain Spain
Week rank: 200 Up7 in Spain Spain Up
Innovation award
Innovation award
Nominee: 2x

Example

<?php
require('functions/linearcalibration.php');
echo(
'Pesticide calibration ng/g vs area');
echo(
'<br>');
echo(
'Linear calibration evaluation with 95% confidence');
echo(
'<br>');
$concentration=array(2,3,5,10,20,50,100);
$response=array(11528,30377,49415,95699,233246,618053,1431417);
//weight: 1/concentration. Usual weight in routine calibration
for($Wi = 0; $Wi < count($concentration); $Wi++) {
     
$weight1x[]=1/$concentration[$Wi];
    }
$resultadoslinear= new linearcalibration($concentration,$response,95,$weight1x);
$slope=$resultadoslinear->getSlope();
$intersection=$resultadoslinear->getYInt();
$error=$resultadoslinear->getRStdErrW100();
$residual=$resultadoslinear->getSumSquaredError();
$capab=$resultadoslinear->getCCbeta();
print_r($concentration);
echo(
'<br>');
print_r($response);
echo(
'<br>');
echo(
$slope.'/<-/ Slope in linear calibration/<br>');
echo(
$intersection.'/<-/ Intersection in linear calibration/<br>');
echo(
$error.'/<-%Error linear calibration ISO 8466-1/ <br>');
echo(
$residual.'/<-Residual sum. ICH requirement/ <br>');
echo(
$capab.'/<-Capability of detection ISO 11843-1/ <br>');

?>


  Files folder image Files (2)  
File Role Description
Files folder imagefunctions (1 file)
Plain text file example.php Example example

  Files folder image Files (2)  /  functions  
File Role Description
  Plain text file linearcalibration.php Class calibration

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:64
This week:0
All time:10,406
This week:455Up