const generateGaussianPoint = ( mean , x , delta ) : number => { const member1 = 1 / ( delta * Math . sqrt ( 2 * Math . PI ) ) ; const member2 = Math . pow ( Math . E , - ( ( x - mean ) ** 2 ) / ( 2 * delta ** 2 ) ) ; return member1 * member2 ; } ; export function skewedProbabilityMap ( n_tp , START_CFG , END_CFG , mean ) { const incrementQty = ( END_CFG - START_CFG ) / ( n_tp - 1 ) ; return [ ... Array ( n_tp ) . keys ( ) ] . map ( ( _ , index ) => generateGaussianPoint ( mean , START_CFG + index * incrementQty , 1 ) ) ; } export function uniformProbabilityMap ( n_tp ) { return Array ( n_tp ) . fill ( 1 ) ; }