-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
optimizer.h
36 lines (30 loc) · 976 Bytes
/
optimizer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef OPTIMIZER_H
#define OPTIMIZER_H
#include "mainwindow.h"
#include "speaker.h"
#include "box.h"
#include "sealedbox.h"
#include "portedbox.h"
#include "bandpassbox.h"
class Optimizer
{
public:
Optimizer(const Speaker &speaker, SealedBox *box, int sibling, QObject* parent = nullptr);
Optimizer(const Speaker &speaker, PortedBox *box, int sibling, QObject* parent = nullptr);
Optimizer(const Speaker &speaker, BandPassBox *box, int sibling, QObject* parent = nullptr);
void genericOptimizeBox();
void portedAlignModerate_Inf();
void portedAlignLegendre();
void portedAlignBessel();
void portedAlignBullock();
void portedAlignKeele_Hoge();
void bandpassAlignS_Pa(double s, double pa);
void portedAlignVb_Fb(double vb, double fb, const QString &title);
private:
Speaker speaker;
Box *box;
int type;
int sibling; /* number of speakers (not push-pull!) */
MainWindow* mainwindow;
};
#endif // OPTIMIZER_H