Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Normalization with Decimal Scaling examples, formula and calculations

Normalization with Decimal Scaling examples, formula and calculations

Enter the Attributes of Table in following TextBoxes:

Enter first value:-

Enter second value :-

Enter third value :-

Enter fourth value:-



 

Results of what you enter


[insert_php]

if(isset($_POST[‘add’]))
{

$firstvalue=$_POST[‘pehlivalue’];
echo “FIRST value you entered is $firstvalue
“; //displaying user’s entered
$a= strlen($firstvalue); //assigning length of 1st value to new varriable

$secondvalue=$_POST[‘dosrivalue’];
echo ”
SECOND value you entered is $secondvalue
“;
$b= strlen($secondvalue); //assigning length of 2nd value to new varriable

$thirdvalue=$_POST[‘teesrivalue’];
echo ”
THIRD value you entered is $thirdvalue
“;
$c= strlen($thirdvalue); //assigning length of 3rd value to new varriable

$fourthvalue=$_POST[‘chootivalue’];
echo ”
FOURTH value you entered is $fourthvalue
“;
$d= strlen($fourthvalue); //assigning length of 4rth value to new varriable

if($a>$b&&$a>$c&&$a>$d) //first possibility when first value is greatest of all
{
echo”
After Counting the MAXIMUM/LARGEST ATTRIBUTE of table we got that there are $a NUMBERS/DIGITS in it”;

if($a==1)
{
$max=10;
echo “
As we have $a number in our MAXIMUM so putting $a ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}
else if($a==2)
{
$max=100;
echo “
As we have $a number in our MAXIMUM so putting $a ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($a==3)
{
$max=1000;
echo “
As we have $a number in our MAXIMUM so putting $a ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($a==4)
{
$max=10000;
echo “
As we have $a number in our MAXIMUM so putting $a ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($a==5)
{
$max=100000;
echo “
As we have $a number in our MAXIMUM so putting $a ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else
{
$max=1000000;
echo “
As we have $a number in our MAXIMUM so putting $a ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}
} //first possibility’s IF of first number is ending thats “a”

else if($b>$a&&$b>$c&&$b>$d) //2nd possibility when 2nd value is greatest of all
{
if($b==1)
{
$max=10;
echo “
As we have $b number in our MAXIMUM so putting $b ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}
else if($b==2)
{
$max=100;
echo “
As we have $b number in our MAXIMUM so putting $b ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($b==3)
{
$max=1000;
echo “
As we have $b number in our MAXIMUM so putting $b ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($b==4)
{
$max=10000;
echo “
As we have $b number in our MAXIMUM so putting $b ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($b==5)
{
$max=100000;
echo “
As we have $b number in our MAXIMUM so putting $b ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else
{
$max=1000000;
echo “
As we have $b number in our MAXIMUM so putting $b ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}
} //main if of B is ending

else if($c>$a&&$c>$b&&$c>$d) //3rd possibility when 3rd value is greatest of all
{
if($c==1)
{
$max=10;
echo “
As we have $c number in our MAXIMUM so putting $c ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}
else if($c==2)
{
$max=100;
echo “
As we have $c number in our MAXIMUM so putting $c ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($c==3)
{
$max=1000;
echo “
As we have $c number in our MAXIMUM so putting $c ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($c==4)
{
$max=10000;
echo “
As we have $c number in our MAXIMUM so putting $c ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($c==5)
{
$max=100000;
echo “
As we have $c number in our MAXIMUM so putting $c ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else
{
$max=1000000;
echo “
As we have $c number in our MAXIMUM so putting $c ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}
} //main if of C is ending

else //last possibility when 4th value is greatest of all
{

if($d==1)
{
$max=10;
echo “
As we have $d number in our MAXIMUM so putting $d ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}
else if($d==2)
{
$max=100;
echo “
As we have $d number in our MAXIMUM so putting $d ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($d==3)
{
$max=1000;
echo “
As we have $d number in our MAXIMUM so putting $d ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($d==4)
{
$max=10000;
echo “
As we have $d number in our MAXIMUM so putting $d ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else if($d==5)
{
$max=100000;
echo “
As we have $d number in our MAXIMUM so putting $d ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}

else
{
$max=1000000;
echo “
As we have $d number in our MAXIMUM so putting $d ZEROS after 1 which looks like $max”;
$div1=$firstvalue/$max;
$div2=$secondvalue/$max;
$div3=$thirdvalue/$max;
$div4=$fourthvalue/$max;

}
} //main if of D is ending

echo”
“;
echo ‘

‘;

echo “

“;
echo”

“;
echo”

“;
echo”

“;
echo “

“;

echo “

“;
echo”

“;
echo”

“;
echo”

“;
echo “

“;

echo “

“;
echo”

“;
echo”

“;
echo”

“;
echo “

“;

echo “

“;
echo”

“;
echo”

“;
echo”

“;
echo “

“;

echo “

“;
echo”

“;
echo”

“;
echo”

“;
echo “

“;
echo “

“;
echo “

ATTRIBUTEFORMULA OF DECIMAL SCALINGATTRIBUTE NORMALIZED AFTER DECIMAL SCALING
” .$firstvalue.”“.$firstvalue.”/$max” .$div1.”
” .$secondvalue.”“.$secondvalue.”/$max” .$div2.”
” .$thirdvalue.”“.$thirdvalue.”/$max” .$div3.”
” .$fourthvalue.”“.$fourthvalue.”/$max” .$div4.”
“;
}//if(isset) body is closed here
[/insert_php]

STEPS TO NORMALIZE BY DECIMAL SCAILING

  1. FIRST WE FIND THE LARGEST NUMBER AMONG ALL OF ATTRIBUTES OF TABLE
  2. SE WE HAVE FOUND THE LARGEST NUMBER FROM ALL ATTRIBUTES
  3. THEN WE’ll COUNT THE NUMBER OF DIGITS IN THE LARGEST NUMBER
  4. THEN WE’ll PUT ZEROS EQUAL TO THE NUMBER OD DIGITS IN THE LARGEST NUMBER

EXAMPLES of DECIMAL SCAILING normalization

EXAMPLE 1

CGPAFORMULA
CGPA AFTER DECIMAL SCALING NORMALIZATION
1010/1000.1
9090/1000.9
  • We’ll check maximun value among our attribute CGPA.
  • Here maximum value is 90 so we can convert it into decimal by deviding it with 100
  • WHY 100?
  • WE’ll COUNT THE NUMBER OF DIGITS IN THE LARGEST NUMBER
  • THEN WE’ll PUT ZEROS EQUAL TO THE NUMBER OD DIGITS IN THE LARGEST NUMBER
  • THEN WE’ll DEVIDE ALL THE ATTRIBUTES OF TABLE WITH THE NEW NUMBER WITH ZEROS
  • THEN WE’ll DEVIDE ALL THE ATTRIBUTES OF TABLE WITH THE NEW NUMBER WITH ZEROS
  • EXAMPLE 2

    SALARYFORMULA
    Salary AFTER DECIMAL SCALING NORMALIZATION
    40,00040,000/1000000.4
    31,00031,000/1000.31
    Prof. Fzal Rehman Shamil
    Instructor, Researcher, Blogger, SEO Expert, Poet and Publisher of International Journal Of Software, Technology & Science ISSN : 2616 - 5325