Link Search Menu Expand Document

ExponDist

Ensor.ExponDist(Ensor* pEnsor,double lamda,boo cumulative)

Parameters

  • Ensor* pEnsor

Ensor.new() 함수등에 의해 만들어진 포인터를 입력합니다(data >= 0).

  • double lamda

exponential 분포의 lamda 값을 입력합니다.(lamda >= 0)

  • bool cumulative

cumulative : true 이면 누적분포값을 반환합니다.

cumulative : false이면 ,확률 밀도값을 반환합니다.

Return Value

Ensor* pRetEnsor : pEnsor의 엘리먼트에 맞는 갯수만큼 계산된 Ensor*를 반환합니다.

Remarks

  • The equation for the probability density function is:

     ![](/enuspace_doc/docs/StatisticsAPI/ExponDistFunc1.png)
    
  • The equation for the cumulative distribution function is:

Examples1

function MathEquation()
 	local ensor_x = ensor.new("{0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5,0.55,0.6,0.65,0.7,0.75,0.8,0.85,0.9,0.95}")
 	local ensor_y = ensor.ExponDist(ensor_x,10,false)
	local ensor_y2 = ensor.ExponDist(ensor_x,10,true)

 	ensor.Plot(ensor_x, ensor_y)
	ensor.Plot(ensor_x, ensor_y2)
 	ensor.Table(ensor_y)
	ensor.Table(ensor_y2)
end 

Result