08-09-2011
A sequence like this has me wondering if this might be homework...
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I want to genrate 10 random 32 bit binary numbers with hamming distance 4 and 8.
11010110010101010101010101010101
11010110010101010100010101010010
if we look carefully at these two binary numbers they differ at 4 places hence hamming distance 4. Now I want to genrate these numbers... (2 Replies)
Discussion started by: hack_tom
2 Replies
2. Shell Programming and Scripting
hello All
Do anybody know how to generat number line
that is puting the number of lines at the begining of a new line, with d bracket by the side
say
1)
2)
3)
any help would be nice (7 Replies)
Discussion started by: sam4now
7 Replies
3. Shell Programming and Scripting
Dear All,
I have below attached file in which i have many nos, i want the last ascending order nos. The brief description is given below.
File
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432 (6 Replies)
Discussion started by: pravani1
6 Replies
4. Shell Programming and Scripting
Hi,
I am having trouble with generating random numbers. can this be done with awk?
So I have a file that looks like this:
23 30
24 40
26 34
So column1 is start and column2 is end. I want to generate 3 random #'s between start and stop:
So the output will look like this:
... (9 Replies)
Discussion started by: phil_heath
9 Replies
5. Shell Programming and Scripting
I want to generate an awk function that generated a Gaussian distributed set of random numbers. I need to implement the thing below in awk. Rnd is just a uniform random number between 0 and 1
function rgaussian(r1, r2) {
Do
v1 = 2 * Rnd - 1
v2 = 2 * Rnd - 1
... (0 Replies)
Discussion started by: kristinu
0 Replies
6. Shell Programming and Scripting
Hi,
I have a tab delimited file with 2 columns. In the first column the numbers are sorted from smallest to largest. It is supposed to be in the numerical order but in between some numbers are missing. Is there a way I could easily get those numbers that are missing and output it a file using... (11 Replies)
Discussion started by: Lucky Ali
11 Replies
7. UNIX for Dummies Questions & Answers
I have a text file where I want to append a column of numbers in ascending orders.
Input:
57 abc
25 def
32 ghi
54 jkl
Output:57 abc
57 abc 1
25 def 2
32 ghi 3
54 jkl 4
How do I go about doing that? Thanks! (11 Replies)
Discussion started by: evelibertine
11 Replies
8. Shell Programming and Scripting
Hi All,
I have following data to be arranged based on columnd 6:
0098442947
0098222107
0098442134
0098200179
0098441067
0098442744
0098443106
0098442746
0098321411
0098443111
0098456611
0098444570
0098456600
0098385750
0098200288 (3 Replies)
Discussion started by: angshuman
3 Replies
9. Shell Programming and Scripting
Just stumbled over a terrible feature in nawk derivates. I did not find it documented in man pages.
HP-UX 11.31:
echo info | awk '{print $1+0}'
inf
echo nano | awk '{print $1+0}'
nan
echo info | awk '{print $1-$1}'
-nanSolaris 10:
echo info | nawk '{print $1+0}'
Inf
echo nano | nawk... (5 Replies)
Discussion started by: MadeInGermany
5 Replies
LEARN ABOUT SUNOS
mlib_signallpc2lsp_f32
mlib_SignalLPC2LSP_F32(3MLIB) mediaLib Library Functions mlib_SignalLPC2LSP_F32(3MLIB)
NAME
mlib_SignalLPC2LSP_F32 - convert linear prediction coefficients to line spectral pair coefficients
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignalLPC2LSP_F32(mlib_f32 *lsp, const mlib_f32 *lpc, mlib_s32 order);
DESCRIPTION
The mlib_SignalLPC2LSP_F32() function converts linear prediction coefficients to line spectral pair coefficients.
The line spectral pair (LPS) coefficients are defined as the roots of the following two polynomials:
-(M+1) -1
P(z) = A(z) + z * A(z )
-(M+1) -1
Q(z) = A(z) - z * A(z )
where A(z) is the inverse filter
M -i
A(z) = 1- SUM a(i) * z
i=1
Note that since P(z) is symmetric and Q(z) is antisymmetric all roots of these polynomials are on the unit circle and they alternate each
other. P(z) has a root at z = -1 (w = PI) and Q(z) has a root at z = 1 (w = 0).
The line spectral frequency (LPF) are the angular frequency of the line spectral pair (LPS) coefficients.
q = cos(w)
where q is the LPS and w is the LPF.
See Fundamentals of Speech Recognition by Lawrence Rabiner and Biing-Hwang Juang, Prentice Hall, 1993.
PARAMETERS
The function takes the following arguments:
lsp The line spectral pair coefficients.
lpc The linear prediction coefficients.
order The order of the linear prediction filter.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
mlib_SignalLSP2LPC_F32(3MLIB), attributes(5)
SunOS 5.10 10 Nov 2004 mlib_SignalLPC2LSP_F32(3MLIB)