distributions.cpp
来自「ver good program for queing」· C++ 代码 · 共 25 行
CPP
25 行
//
// This file is part of an OMNeT++/OMNEST simulation example.
//
// Contributed by Nick van Foreest
//
// This file is distributed WITHOUT ANY WARRANTY. See the file
// `license' for details on this and other legal matters.
//
#include <omnetpp.h>
double deterministic(double a)
{
return (a);
}
double perturbedExponential(double a, double b)
{
return ( exponential(a) + uniform(0,b));
}
Define_Function( deterministic, 1);
Define_Function( perturbedExponential, 2);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?