CSL
5.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Lorenz.h
Go to the documentation of this file.
1
///
2
/// Lorenz.h -- Header file for the Lorenz chaotic oscillator
3
/// See the copyright notice and acknowledgment of authors in the file COPYRIGHT
4
///
5
6
#ifndef CSL_Lorenz_H
7
#define CSL_Lorenz_H
8
9
#include "
CSL_Core.h
"
10
11
namespace
csl {
12
13
///
14
/// Lorenz chaotic oscillator = this plays one variable of the Lorenz Strange Attractor between +1 and -1
15
///
16
17
class
Lorenz
:
public
UnitGenerator
{
18
19
public
:
20
/// Constructor
21
Lorenz
(
float
x
= 0.02,
float
y
= 20.,
float
z
= 20.);
22
~Lorenz
();
23
24
/// Accessors
25
float
x
()
const
{
return
mX
; }
26
float
y
()
const
{
return
mY
; }
27
float
z
()
const
{
return
mZ
; }
28
29
void
setX
(
float
tx) {
mX
= tx; }
30
void
setY
(
float
ty) {
mY
= ty; }
31
void
setZ
(
float
tz) {
mZ
= tz; }
32
33
void
dump
();
34
void
nextBuffer
(
Buffer
& outputBuffer,
unsigned
outBufNum)
throw
(
CException
);
35
36
protected
:
37
float
mX
,
mY
,
mZ
;
38
};
39
40
}
41
42
#endif
CSL
Sources
Lorenz.h
Generated on Thu Nov 15 2012 22:01:10 for CSL by
1.8.1.1