HOA_Utilities.cpp File Reference

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "HOA_Utilities.h"

Defines

#define PYTHAG(a, b)
#define MAX(a, b)
#define SIGN(a, b)   ((b) < 0.0 ? -fabs(a): fabs(a))

Functions

unsigned int csl::channelsToUniformOrder (const unsigned int channels)
unsigned int csl::getGreaterOrder (const ambisonicOrder order)
unsigned int csl::orderToChannels (const ambisonicOrder order)
unsigned int csl::orderToChannels (unsigned int order)
unsigned int csl::orderToHorizontalChannels (const ambisonicOrder order)
unsigned int csl::orderToVerticalChannels (const ambisonicOrder order)
unsigned int * csl::channelIndexer (const ambisonicOrder order)
unsigned int * csl::invChannelIndexer (const ambisonicOrder order)
void csl::SingularValueDecomposition (sample **a, int m, int n, sample *w, sample **v)
void csl::fumaEncodingWeights (sample *weights, const ambisonicOrder &order, sample &azimuth, sample &elevation)
void csl::fumaIndexedEncodingWeights (sample *weights, const ambisonicOrder &order, sample &azimuth, sample &elevation)

Variables

static double at
static double bt
static double ct
static double maxarg1
static double maxarg2


Define Documentation

#define PYTHAG a,
 ) 
 

Value:

((at = fabs(a)) > (bt = fabs(b)) ? \
(ct = bt/at, at*sqrt(1.0+ct*ct)): (bt ? (ct = at/bt, bt*sqrt(1.0+ct*ct)): 0.0))

#define MAX a,
 ) 
 

Value:

(maxarg1 = (a), maxarg2 = (b), (maxarg1) > (maxarg2) ? \
(maxarg1) : (maxarg2))

#define SIGN a,
 )     ((b) < 0.0 ? -fabs(a): fabs(a))
 


Variable Documentation

double at [static]
 

double bt [static]
 

double ct [static]
 

double maxarg1 [static]
 

double maxarg2 [static]
 


Generated on Fri Apr 6 20:18:15 2007 for CSL by  doxygen 1.4.5-20051010