Home > matpower7.0 > extras > syngrid > lib > sg_exprnd.m

sg_exprnd

PURPOSE ^

SG_EXPRND Replacement for EXPRND from the Statistics Toolbox

SYNOPSIS ^

function y_rand = sg_exprnd(mu,n,m)

DESCRIPTION ^

SG_EXPRND Replacement for EXPRND from the Statistics Toolbox

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function y_rand = sg_exprnd(mu,n,m)
0002 %SG_EXPRND Replacement for EXPRND from the Statistics Toolbox
0003 
0004 %   SynGrid
0005 %   Copyright (c) 2017, 2018, Electric Power and Energy Systems (EPES) Research Lab
0006 %   by Hamidreza Sadeghian, Virginia Commonwealth University
0007 %
0008 %   This file is part of SynGrid.
0009 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0010 
0011 x = rand(n, m);
0012 y_rand = -(mu) .* log(1-x);

Generated on Mon 24-Jun-2019 15:58:45 by m2html © 2005