//Constructor /// <summary> /// Creates an initialized instance. /// </summary> /// <param name="coderCfg">The coder configuration.</param> public A2SCoderGaussianReceptors(A2SCoderGaussianReceptorsSettings coderCfg) : base(coderCfg.NumOfTimePoints, coderCfg.NumOfReceptors) { _gaussianMaxFx = 1d / (GaussianBellWidth * Math.Sqrt(2d * Math.PI)); _peaks = new double[coderCfg.NumOfReceptors]; double divider = coderCfg.NumOfReceptors > 1 ? coderCfg.NumOfReceptors - 1 : 1; for (int i = 0; i < coderCfg.NumOfReceptors; i++) { _peaks[i] = i / divider; } return; }
/// <summary> /// The deep copy constructor. /// </summary> /// <param name="source">The source instance.</param> public A2SCoderGaussianReceptorsSettings(A2SCoderGaussianReceptorsSettings source) : this(source.NumOfReceptors, source.NumOfTimePoints) { return; }