HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/htdocs/PBN/PSASID/SCCA06.php
<?php
	# ------- The graph values in the form of associative array
	function SCCA06($v,$X1,$Xw2,$target) {

if ($target=="CRPC6") {
	$Xw1x=85.0142;//CRPC6 Paper X
	$Xw1y=87.6183;
	$Xw1z=76.9326;
	$Xminx=0.97642;
	$Xminy=1.00705;
	$Xminz=0.80871; }
elseif ($target=="GRACoL2006") {
	$Xw1x=84.47;//Gracol Paper X
	$Xw1y=87.62;
	$Xw1z=74.52;
	$Xminx=0.87;
	$Xminy=0.89;
	$Xminz=0.74; }
elseif ($target=="Fogra39") {
	$Xw1x=84.48;//Gracol Paper X
	$Xw1y=87.62;
	$Xw1z=74.57;
	$Xminx=0.93;
	$Xminy=0.97;
	$Xminz=0.69; }	



	
	
	if ($v=='x') {
	$C=($Xw2-$Xw1x)/($Xw1x-$Xminx);
	$X2=$X1*(1+$C)-($Xminx*$C);
	return $X2;}
	
	if ($v=='y') {
	$C=($Xw2-$Xw1y)/($Xw1y-$Xminy);
	$X2=$X1*(1+$C)-($Xminy*$C);
	return $X2;}
	
	if ($v=='z') {
	$C=($Xw2-$Xw1z)/($Xw1z-$Xminz);
	$X2=$X1*(1+$C)-($Xminz*$C);
	return $X2;}
	
}
?>