Skip to content

Instantly share code, notes, and snippets.

View fatihgune's full-sized avatar
🔆

Fatih Güneş fatihgune

🔆
View GitHub Profile
@fatihgune
fatihgune / normDist.php
Created December 6, 2020 16:44
Returns the standard normal cumulative distribution
<?
/**
* @param mixed $x
* @return string
*/
public function normDist($x)
{
// Load tabulated values in an array
$values = config('table');
@fatihgune
fatihgune / cumNormDist.php
Created December 6, 2020 16:45
Cumulative Normal Distribution Calculation (PHP)
<?
/**
* @param mixed $x
* @return float|int
*/
public function cumNormDist($x)
{
$b1 = 0.319381530;
$b2 = -0.356563782;
@fatihgune
fatihgune / prob.php
Created December 6, 2020 16:46
Return Probability From the Table (PHP)
<?
public function returnProbabilityFromTheTable($zValue)
{
return $this->CDF($zValue);
}
public function sgn($x)
{
if ($x < 0) {

Keybase proof

I hereby claim:

  • I am fatihgune on github.
  • I am fatih_gunes (https://keybase.io/fatih_gunes) on keybase.
  • I have a public key ASA6Fr9XK2q57SSYlbMPhd9FgtbEH9fXsNYivpiM-_7maQo

To claim this, I am signing this object: