Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F67287792
surface_generator_filter.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jun 21, 12:37
Size
1 KB
Mime Type
text/x-c
Expires
Sun, Jun 23, 12:37 (2 d)
Engine
blob
Format
Raw Data
Handle
18336611
Attached To
rTAMAAS tamaas
surface_generator_filter.hh
View Options
#ifndef SURFACE_GENERATOR_FILTER_H
#define SURFACE_GENERATOR_FILTER_H
/* -------------------------------------------------------------------------- */
#include "surface_generator.hh"
/* -------------------------------------------------------------------------- */
class
SurfaceGeneratorFilter
:
public
virtual
SurfaceGenerator
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
//! constructor : takes a config file as input
SurfaceGeneratorFilter
(
const
std
::
string
&
inputfile
);
//! default constructor
SurfaceGeneratorFilter
();
//! destructor
~
SurfaceGeneratorFilter
();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
Surface
<
Real
>
&
buildSurface
();
void
Init
();
//! clear the random surface
void
clearSource
();
protected
:
virtual
void
computeFilterCoefficients
()
=
0
;
void
applyFilterOnSource
();
void
generateWhiteNoiseFFT
();
void
generateHFFT
();
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
//! filter coefficients
Surface
<
Real
>
*
h_coeff
;
//! white noise
Surface
<
Real
>
*
sources
;
//! cutofffrequency
Real
alpha
;
SurfaceComplex
<
Real
>
*
surface_spectral
;
SurfaceComplex
<
Real
>
*
white_noise_FFT
;
SurfaceComplex
<
Real
>
*
h_coeff_power
;
};
#endif
Event Timeline
Log In to Comment