mseq

Functions

int main(int argc, char *argv[])

mseq [ option ]

  • -l int

    • output length \((1 \le L)\)

  • -m int

    • output order \((0 \le L - 1)\)

  • stdout

    • double-type m-sequence

The output of this command is \(1\) or \(-1\):

\[ \begin{array}{ccccc} 1, & -1, & 1, & \ldots, & 1 \end{array} \]
where the output length is \(L\). If \(L\) is not given, an infinite m-sequence is generated.

Parameters:
  • argc[in] Number of arguments.

  • argv[in] Argument vector.

Returns:

0 on success, 1 on failure.

See also

nrand

class MSequenceGeneration : public sptk::RandomGenerationInterface

Generate random number based on m-sequence.

Public Functions

MSequenceGeneration()

Make object.

virtual void Reset() override

Reset internal state.

virtual bool Get(double *output) override

Get random number.

Parameters:

output[out] Random number.

Returns:

True on success, false on failure.