gauss.3
来自「speech signal process tools」· 3 代码 · 共 46 行
3
46 行
.\" Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved.\" @(#)gauss.3 1.4 20 Oct 1987 ESI.TH GAUSS 3\-ESPSsp 20 Oct 1987.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH NAMEgauss \- compute zero-mean, unit standard-deviation Gaussian random number.SH SYNOPSIS.ft Bfloat.brgauss().ft.SH DESCRIPTION.I gaussreturns zero-mean, unit standard-deviation (RMS amplitude) gaussian distributed floats. It uses .IR random (3)to generate uniformly-distributed values and transforms these to Gaussian-distributed values. .I gaussdoes not set the random seed so that calling programs can do so. Callingprograms should set the seed using .IR srandom (3). .SH EXAMPLE.if n .ta 33.if t .ta 3ilong seed = 1234567;.brfloat *gaussdata;.brint n;.br . . ..br(void) srandom(seed);.brfor (i = 0; i < points; i++) gaussdata[i] = gauss();.SH DIAGNOSTICSNone..SH BUGSNone known..SH SEE ALSOrandom(3), srandom(3), testsd(1\-ESPS).SH AUTHORJohn Shore (modified a routine by Shankar Narayan)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?