Defines | Typedefs | Enumerations | Functions

ocsReducedModelTools.hh File Reference

#include <unistd.h>
#include "ocsConst.hh"
#include "ocsReadWriteTools.hh"
#include "ocsRanNumGen.hh"
#include <iostream.h>
#include <string.h>
#include <math.h>
#include <fstream.h>
#include <complex.h>
#include <stdlib.h>
#include <stdio.h>
#include <strstream>
#include <string>

Go to the source code of this file.

Defines

#define _OCS_SYSTEM_HDRS_
#define NEAR_ZERO   2.2e-13

Typedefs

typedef complex< double > cplx

Enumerations

enum  { MOSIX_UNLOCK, MOSIX_LOCK }

Functions

template<class T >
sq (T)
template<class T >
cube (T)
int sgn (double x)
double min (double a, double b)
void TransRzRyV3to_Xhat (double *Vector, double *thetaZthetaY)
void TransRyV3to_YZ (double *Vector, double *thetaY)
void TransRzRxV3to_Xhat (double *Vector, double *thetaZthetaX)
void RotatesAboutZ (double angle, double *Vector)
void RotatesAboutX (double angle, double *Vector)
void RotatesAboutY (double angle, double *Vector)
void Multiply (double Left[][3], double Right[][3])
void Multiply (double Left[][3], double Right[3])
double ScalarProduct (double *VectorA, double *VectorB)
void CrossProduct (double Left[4], double Right[4], int FirstCoord)
double GetVectorLength (double *Vector, int Dimension)
double dB2Linear (double dBvalue)
double dBm2Linear (double dBmPower)
double Linear2dB (double LinearValue)
double Linear2dBm (double LinearPower)
double GetDegreeOfPolarization (double *StokesVector)
double GetPhase (const cplx Phasor)
void Stokes2Jones (const double *Stokes, cplx *Jones)
void Jones2Stokes (const cplx *Jones, double *Stokes)
void Stokes2JonesKeepPower (const double *Stokes, cplx *Jones)
void Jones2StokesKeepPower (const cplx *Jones, double *Stokes)
double Frequency2Wavelength (double Frequency)
double Wavelength2Frequency (double Wavelength)
int lock_or_unlock_mosix (int what)
int cpujob_mosix (void)
int slow_mosix (void)
double dB_to_factor (double G_dB)
double factor_to_dB (double factor)
void nrerror (char error_text[])
float erffc (float x)
float gammp (float a, float x)
void gcf (float *gammcf, float a, float x, float *gln)
void gser (float *gamser, float a, float x, float *gln)
float gammln (float xx)
float gammq (float a, float x)

Define Documentation

#define _OCS_SYSTEM_HDRS_
#define NEAR_ZERO   2.2e-13

Typedef Documentation

typedef complex<double> cplx

Enumeration Type Documentation

anonymous enum
Enumerator:
MOSIX_UNLOCK 
MOSIX_LOCK 

Function Documentation

int cpujob_mosix ( void   ) 
void CrossProduct ( double  Left[4],
double  Right[4],
int  FirstCoord 
)
template<class T >
T cube ( in  )  [inline]
double dB2Linear ( double  dBvalue  ) 
double dB_to_factor ( double  G_dB  )  [inline]
double dBm2Linear ( double  dBmPower  ) 
float erffc ( float  x  ) 
double factor_to_dB ( double  factor  )  [inline]
double Frequency2Wavelength ( double  Frequency  ) 
float gammln ( float  xx  ) 
float gammp ( float  a,
float  x 
)
float gammq ( float  a,
float  x 
)
void gcf ( float *  gammcf,
float  a,
float  x,
float *  gln 
)
double GetDegreeOfPolarization ( double *  StokesVector  ) 
double GetPhase ( const cplx  Phasor  ) 
double GetVectorLength ( double *  Vector,
int  Dimension 
)
void gser ( float *  gamser,
float  a,
float  x,
float *  gln 
)
void Jones2Stokes ( const cplx Jones,
double *  Stokes 
)
void Jones2StokesKeepPower ( const cplx Jones,
double *  Stokes 
)
double Linear2dB ( double  LinearValue  ) 
double Linear2dBm ( double  LinearPower  ) 
int lock_or_unlock_mosix ( int  what  ) 
double min ( double  a,
double  b 
) [inline]
void Multiply ( double  Left[][3],
double  Right[3] 
)
void Multiply ( double  Left[][3],
double  Right[][3] 
)
void nrerror ( char  error_text[]  ) 
void RotatesAboutX ( double  angle,
double *  Vector 
)
void RotatesAboutY ( double  angle,
double *  Vector 
)
void RotatesAboutZ ( double  angle,
double *  Vector 
)
double ScalarProduct ( double *  VectorA,
double *  VectorB 
)
int sgn ( double  x  )  [inline]
int slow_mosix ( void   ) 
template<class T >
T sq ( in  )  [inline]

Referenced by Histogram::AddImportantSample(), RamanAmp::AddNoise(), OptAmplifier::AmplifyHomogeneous(), OptFiberLocalError::ApplyFastSaturableAbsorptionQuadraticAnalytic(), OptFiberLocalError::ApplyKerrNonlinearityOperator(), SaturableAbsorber::ApplyQuadraticNoLossAnalytic(), SaturableAbsorber::ApplyQuadraticWithLossAnalytic(), ChiSquareReceiverDerivativePsi(), ChiSquareReceiverSecondDerivativePsi(), NoiseCovariance::ComputeArtificialDispersionCompensationOperator(), ElecSignalStat::ComputeAveragePDFs(), GaussianReceiver::ComputeAveragePDFs(), OptSpectrumAnalyzer::ComputeAveragePowerFreqWindow(), NoiseCovariance::ComputeColumnPropagator(), OptFiberLocalError::ComputeDispersionOperator(), OptFiberLocalError::ComputeFreqDomainOperator(), OptSignal::ComputeFWHMPulsePower(), ChiSquareReceiver::ComputeGaussianPDFsAndBER(), ChiSquareReceiver::ComputeKLModes(), ElecFilter::ComputeMatchAndFilter(), OptSignal::ComputeMaxPower(), OptFiberLocalError::ComputeMaxPower(), OptSignal::ComputeMeanFreqSignal(), OptSignal::ComputeMeanPhasePulse(), OptSignal::ComputeMeanTimePulse(), ChiSquareReceiver::ComputeMomentsInEachBit(), SaturableAbsorber::ComputeRelativeError(), OptSignal::ComputeRMSPulseWidth(), OptSignal::ComputeRMSSpectralWidth(), OptSignal::ComputeSigmaSqTimeWindow(), OptFiberLocalError::ComputeThirdOrderSolutionAndRelativeError(), OptFiberLocalError::ComputeThirdOrderSolutionAndRelativeErrorOLD(), ChiSquareReceiver::ComputeTimeIndependentPartOfFilterMatrix(), Photodetector::ComputeWorkBinaryEXORElecSignal(), Photodetector::DetectOptSignal(), MachZehnder::EAM34PulseShape(), OptSignal::EOM_Gaussian(), erfccExtendedRange(), ChiSquareReceiver::EvaluateGaussianApproximation(), OptFilter::FabryPerotFilter(), SaturableAbsorber::FastSaturableAbsorptionFunction(), OptFiberLocalError::FastSaturableAbsorptionFunction(), OptFiberLocalError::FiberAmplifierGetEnergyForHeunsMethod(), ElecFilter::Gaussian(), gaussian_pdf(), ElecFilter::GaussianSmooth(), OptFilter::GaussianTunableOpticalFilter(), OptSignal::GenerateSignalStringGaussianOrSech(), OptSignal::GenerateSignalStringGaussianOrSechWithPhaseShift(), OptSignal::GenerateSignalStringQPSK_Gaussian(), OptSignal::GenerateSignalStringRaisedCosines(), OptSignal::GenerateSignalStringRZGaussianPattern(), OptSignal::GenerateSignalStringUsingInputSequence(), RamanAmp::GeneticAlgorithms(), RamanAmp::GeneticAlgorithmsVaryCW(), RamanAmp::GeneticAlgorithmsVictor(), Histogram2D::Get_pdfConfidence(), Photodetector::GetAverageAbsElecPower(), Photodetector::GetAverageElecPower(), OptSignal::GetAveragePowerFreqDomain(), OptSignal::GetAveragePowerFreqDomainInsideChannel(), OptSignal::GetAveragePowerFreqDomainInsideChannels(), ElecSignalStat::GetBER_GaussianStatisticsFromDecisionThreshold(), ElecSignalStat::GetBit0_PowerStdDev(), ElecSignalStat::GetBit1_PowerStdDev(), ReduOptSignal::GetBitErrorRate(), ElecSignalStat::GetBitErrorRate(), OptSignal::GetChirp(), ReduOptSignal::GetCoPolarizedNoiseInsideBandwidth(), ReduOptSignal::GetDegreeOfPolarization(), GetDegreeOfPolarization(), OptSignal::GetDegreeOfPolarization(), OptSignal::GetDegreeOfPolarizationAndTotalStokesFreqDomain(), ReduOptFiber::GetDGD(), OptFiber::GetDGD(), OptFiberLocalError::GetDGD(), GetDistance2Points(), ElecFilter::GetElecGain(), OptSignal::GetEnergyInTimeRange(), ReduOptFiber::GetExpectedSndOrderDGD(), OptFiberLocalError::GetExpectedSndOrderDGD(), OptFiber::GetExpectedSndOrderDGD(), ElecSignalStat::GetIntegralForNoiseNoiseVarianceGaussianStatistics(), ElecSignalStat::GetIntegralForSignalNoiseVariance(), ElecSignalStat::GetIsolatedBit0_PowerStdDev(), ElecSignalStat::GetIsolatedBit1_PowerStdDev(), Histogram2D::GetLevelCurvesMultipleHeuristicBalanceImport(), Histogram2D::GetLevelCurvesMultipleHeuristicBalanceImportVarianceWeighted(), ReduPolDepAttenuator::GetLinearPolDepAttenuationPowerX(), ReduPolDepAttenuator::GetLinearPolDepAttenuationPowerY(), ElecSignalStat::GetMeanASE_ASE(), ElecSignalStat::GetMeanNoiseGaussianStatistics(), ElecSignalStat::GetNoiseNoiseVarianceGaussianStatistics(), ElecSignalStat::GetNormKcoeff0_GaussianStatistics(), ElecSignalStat::GetNormKcoeff1_GaussianStatistics(), ElecSignalStat::GetNormNumberNoiseModes_GaussianStatistics(), OptFiber::GetNumOutPD_Vector(), ReduOptSignal::GetOrthogPolarizedNoiseInsideBandwidth(), ReduPolDepAttenuator::GetPolDepAttenuationPowerX(), ReduPolDepAttenuator::GetPolDepAttenuationPowerY(), OptFilter::GetPowerEquivalentSpectralWidth(), ElecSignalStat::GetPowerStdDevBit(), ElecSignalStat::GetQ_FactorFromESNR_GaussianStatistics(), ElecSignalStat::GetQ_FactorGaussianStatisticsFirstPattern(), ElecSignalStat::GetQ_FactorGaussianStatisticsWorstPattern(), GetRadiusCircle(), ChiSquareReceiver::GetReducedNoiseFreeSigAndDiagonalizeCovMatrix(), Photodetector::GetRFPower(), Photodetector::GetRFPowerFromFreqIndex(), ReduOptSignal::GetScalarProdSignalNoise(), OptSignal::GetSigmaSqOptSignal(), Photodetector::GetSignalBandwidth(), ElecSignalStat::GetSignalNoiseVarianceForPolarizedSignalGaussianStatistics(), ElecSignalStat::GetSignalNoiseVarianceForUnpolarizedNoiseGaussianStatistics(), ReduOptFiber::GetSndOrderDGD(), OptFiber::GetSndOrderDGD(), OptAmplifier::GetSpectralNoisePowerDensityAddedPerPolarization(), Histogram::GetStdDev(), ElecSignalStat::GetStdDevASE_ASE(), ElecSignalStat::GetStdDevSignal_ASE_TimeIndex(), ElecSignalStat::GetStdDevWorstBit0_GaussianStatistics(), ElecSignalStat::GetStdDevWorstBit1_GaussianStatistics(), ElecSignalStat::GetTargetIndexTimeBestMinEyeOpening(), ElecSignalStat::GetTargetIndexTimeBestQ_Factor(), OptFiber::GetThirdOrderDGD(), OptFiber::GetThirdOrderOutPD_Vector(), OptSignal::GetTotalStokesParameters(), OptSignal::GetTotalStokesParametersInBandwidth(), OptSignal::GetTotalStokesParametersInTime(), ReduPolDepAttenuator::GetTransmMatrixCoefficients(), GetVectorLength(), Histogram2D::IncrementBin(), OptSignal::InitializeFirstOrderPMDSignal(), Jones2Stokes(), Jones2StokesKeepPower(), Histogram2D::MergeMultipleConditionalHeuristicBalance(), Histogram::MergeMultipleConditionalHeuristicBalance(), MGeneralRotation(), Histogram2D::MultipleHeuristicBalanceImport(), Histogram::MultipleHeuristicBalanceImport(), Histogram::MultipleImport(), Histogram::MultipleSelectiveImport(), Histogram::Obtain_pdf(), OptFiber::OptFiber(), optical_filter(), OptSignal::OptSignal(), RamanAmp::PrepareNextStep(), ElecSignalStat::PreparePatternStatsForOutput(), RamanAmp::PrepareSignalLastRound(), RamanAmp::PrepareSignalStart(), ReduOptSignal::ProcessReduOptSignalParameters(), OptFiber::PropagateFiberCoupledNLS(), OptFiber::PropagateFiberCoupledNLSFreqDomainOnly(), OptFiber::PropagateFiberDecoupledNLS(), OptFiber::PropagateFiberScalarNLS(), OptFiber::PropagateFiberScalarNLSWriteData(), OptFiber::PropagateFullNonlinearFiberCoupledNLS(), RamanAmp::PropagateNoise(), RamanAmp::PropagateSignalandNoise(), OptAmplifier::PropagateSignalandNoise(), NoiseCovariance::Propagator(), ChiSquareReceiver::ReceiveSignalCWNoLossNoDisp(), GaussianReceiver::ReceiveSignalDGD_NoisePartiallyPolarized(), GaussianReceiver::ReceiveSignalNoPMD_NoisePartiallyPolarized(), ReceiverSemiAnalytical::ReceiveSignalSemiAnalytical(), RamanAmp::RelaxRamanIteration(), SaturableAbsorber::RungaKutta4Step(), OptFiberLocalError::SetDispersion(), ReduPolarizer::SetPolarization(), Polarizer::SetPolarization(), RamanAmp::ShootingIntegration(), RamanAmp::ShootingIntegrationExample(), RamanAmp::ShootingRamanIteration(), Stokes2Jones(), Stokes2JonesKeepPower(), ElecSignalStat::testsq(), TransRyV3to_YZ(), TransRzRxV3to_Xhat(), TransRzRyV3to_Xhat(), ElecSignalStat::UpdateEqualizedPerformanceStatistics(), ElecSignalStat::UpdateMoments(), OptSpectrumAnalyzer::UpdateOSA(), OptSpectrumAnalyzer::UpdateOSA_OLD(), ElecSignalStat::UpdatePatternStats(), ElecSignalStat::UpdatePerformanceStatistics(), OptSignal::WriteAveragePowerdBm(), OptSignal::WriteDistTimePower(), OptSignal::WriteDistTimePowerPhase(), NoiseCovariance::WriteFileAWGNNoiseFreeSignalAndNoiseSpectralDensity(), NoiseCovariance::WriteFileFreqField(), OptSignal::WriteFileFreqPower(), MachZehnder::WriteFileFreqPower(), OptSignal::WriteFileFreqPowerdBm(), Histogram::WriteFileGaussian_cdf(), Histogram::WriteFileGaussian_cdfc(), Histogram::WriteFileGaussian_pdf(), Histogram::WriteFileMaxwell_pdf(), NoiseCovariance::WriteFileNoiseFreeSignalAndCovarianceMatrix(), ReduOptSignal::WriteFileOptSignal(), Histogram::WriteFileSndOrderPDV_pdf(), NoiseCovariance::WriteFileTimeField(), OptSignal::WriteFileTimePower(), OptSignal::WriteFileWavelengthPower(), OptFilter::WriteFreqPowerFabryPerotFilter(), ElecFilter::WriteFreqPowerFilter(), OptFilter::WriteFreqPowerGaussianFilter(), ElecFilter::WriteFreqPowerGaussianFilter(), OptFilter::WriteFreqPowerSuperGaussianFilter(), OptSignal::WriteLocalFrequencyAndChirp(), ReceiverSemiAnalytical::WriteNoiseFreeOpticalSignalFreq(), OptSignal::WritePowerdBmFreqWindow(), RamanAmp::WriteSignalNoise(), and OptFiberLocalError::WriteStepSizes().

void Stokes2Jones ( const double *  Stokes,
cplx Jones 
)
void Stokes2JonesKeepPower ( const double *  Stokes,
cplx Jones 
)
void TransRyV3to_YZ ( double *  Vector,
double *  thetaY 
)
void TransRzRxV3to_Xhat ( double *  Vector,
double *  thetaZthetaX 
)
void TransRzRyV3to_Xhat ( double *  Vector,
double *  thetaZthetaY 
)
double Wavelength2Frequency ( double  Wavelength  )