?? exponentialrv.cs
字號:
namespace Opus6
{
using System;
[Copyright("Copyright (c) 2001 by Bruno R. Preiss, P.Eng."), Version("$Id: ExponentialRV.cs,v 1.3 2001/09/11 12:04:04 brpreiss Exp $")]
public class ExponentialRV : RandomVariable
{
public ExponentialRV(double mu)
{
this.mu = 1;
this.mu = mu;
}
public double Next
{
get
{
return (-this.mu * Math.Log(RandomNumberGenerator.Next));
}
}
protected double mu;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -