Changed numerical values of some of the defaults and modifications were made for the bootstrap sample size and number to be user-defined.

This commit is contained in:
Karthik 2021-08-19 12:44:24 +02:00
parent 8ac0a018f2
commit 662eae4e03

View File

@ -1,8 +1,8 @@
classdef TwoDimensionalMOT < Simulator.MOTCaptureProcess & matlab.mixin.Copyable classdef TwoDimensionalMOT < Simulator.MOTCaptureProcess & matlab.mixin.Copyable
properties (Access = private) properties (Access = private)
MagneticGradienDefault = 0.425; % T/m MagneticGradienDefault = 0.40; % T/m
ExitDivergenceDefault = 16e-3; ExitDivergenceDefault = 15e-3;
DistanceBetweenPushBeamAnd3DMOTCenterDefault = 0; DistanceBetweenPushBeamAnd3DMOTCenterDefault = 0;
PushBeamDistanceDefault = 0.32; PushBeamDistanceDefault = 0.32;
end end
@ -19,6 +19,8 @@ classdef TwoDimensionalMOT < Simulator.MOTCaptureProcess & matlab.mixin.Copyable
TimeSpentInInteractionRegion; TimeSpentInInteractionRegion;
ParticleDynamicalQuantities; ParticleDynamicalQuantities;
InitialParameters; InitialParameters;
BootstrapSampleLength;
BootstrapSampleNumber;
Results; Results;
end end
@ -50,7 +52,8 @@ classdef TwoDimensionalMOT < Simulator.MOTCaptureProcess & matlab.mixin.Copyable
this.InitialParameters.LandegFactor = this.LandegFactor; this.InitialParameters.LandegFactor = this.LandegFactor;
this.InitialParameters.MagneticSubLevel= this.MagneticSubLevel; this.InitialParameters.MagneticSubLevel= this.MagneticSubLevel;
this.InitialParameters.MagneticGradient= this.MagneticGradient; this.InitialParameters.MagneticGradient= this.MagneticGradient;
this.BootstrapSampleLength = 0.5 * this.NumberOfAtoms;
this.BootstrapSampleNumber = 1000;
end end
function restoreDefaults(this) function restoreDefaults(this)
@ -131,6 +134,18 @@ classdef TwoDimensionalMOT < Simulator.MOTCaptureProcess & matlab.mixin.Copyable
function ret = get.InitialParameters(this) function ret = get.InitialParameters(this)
ret = this.InitialParameters; ret = this.InitialParameters;
end end
function set.BootstrapSampleLength(this,val)
this.BootstrapSampleLength = val;
end
function ret = get.BootstrapSampleLength(this)
ret = this.BootstrapSampleLength;
end
function set.BootstrapSampleNumber(this,val)
this.BootstrapSampleNumber = val;
end
function ret = get.BootstrapSampleNumber(this)
ret = this.BootstrapSampleNumber;
end
function set.Results(this, val) function set.Results(this, val)
this.Results = val; this.Results = val;
end end