function SpectralAnalysisSettings(no,
  name,
  combinationRulePeriodic,
  combinationRuleDirectional,
  scaledSumDirectionalComponentValue,
  useEquivalentLinearCombination,
  signedResultsUsingDominantMode,
  saveResultsOfAllSelectedModes,
  comment,
  params) {
  if (arguments.length !== 0) {
    ASSERT(typeof no != undefined || typeof no != "number", "No must be assigned as an integer.");
    ASSERT(typeof type != undefined || typeof name != "string", "Name must be assigned as a string.");

    if (no === undefined) {
     this.Settings = spectral_analysis_settings.create();
    }
    else {
      this.Settings = spectral_analysis_settings.create(no);
    }

    if (name !== undefined) {
     this.Settings.user_defined_name_enabled = true;
     this.Settings.name = name;
    }

    console.log("New spectral analysis settings no. " +this.Settings.no + " was created");

    // Spectral anlysis settings : combination rules
   this.Settings.combination_rule_for_periodic_responses = spectral_analysis_settings[SetPeriodicCombinationRule(combinationRulePeriodic)];

   this.Settings.combination_rule_for_directional_components = spectral_analysis_settings[SetDirectionalCombinationRule(combinationRuleDirectional)];
    if (this.Settings.combination_rule_for_directional_components === "SCALED_SUM") {
      if (scaledSumDirectionalComponentValue !== undefined) {
       this.Settings.combination_rule_for_directional_components_value = scaledSumDirectionalComponentValue;
      }
      else {
       this.Settings.combination_rule_for_directional_components_value = 0.3;
      }
    }
    if (useEquivalentLinearCombination === true) {
     this.Settings.use_equivalent_linear_combination = true;
    }

    if (signedResultsUsingDominantMode === true) {
     this.Settings.signed_results_using_dominant_mode = true;
    }

    if (saveResultsOfAllSelectedModes === true) {
     this.Settings.save_results_of_all_selected_modes = true;
    }

    // Spectral analysis settings
    set_comment_and_parameters(this.Settings, comment, params);
    console.log("-- Done. spectral analysis settings no. " +this.Settings.no + " all initial params set.");

    var self = this;
    return self;
  }
}
/**
 * Constructor creates basic spectral analysis settings
 * @class
 * @classdesc Class for setting up the spectral analysis settings.
 * @constructor
 * @param {*} no
 * @param {*} name
 * @param {*} combinationRulePeriodic
 * @param {*} combinationRuleDirectional
 * @param {*} scaledSumDirectionalComponentValue
 * @param {*} useEquivalentLinearCombination
 * @param {*} signedResultsUsingDominantMode
 * @param {*} saveResultsOfAllSelectedModes
 * @param {*} comment
 * @param {*} params
 * @@returns Object SpectralAnalysisSettings
 */
Constructor creates basic spectral analysis settings
@class
@classdesc Class for setting up the spectral analysis settings.
Constructor creates basic spectral analysis settings @class @classdesc Class for setting up the spectral analysis settings .
function SpectralAnalysisSettings(no,
  name,
  combinationRulePeriodic,
  combinationRuleDirectional,
  scaledSumDirectionalComponentValue,
  useEquivalentLinearCombination,
  signedResultsUsingDominantMode,
  saveResultsOfAllSelectedModes,
  comment,
  params) {
  if (arguments.length !== 0) {
    ASSERT(typeof no != undefined || typeof no != "number", "No must be assigned as an integer.");
    ASSERT(typeof type != undefined || typeof name != "string", "Name must be assigned as a string.");
    if (no === undefined) {
     this.Settings = spectral_analysis_settings.create();
    }
    else {
      this.Settings = spectral_analysis_settings.create(no);
    }
    if (name !== undefined) {
     this.Settings.user_defined_name_enabled = true;
     this.Settings.name = name;
    }
    console.log("New spectral analysis settings no. " +this.Settings.no + " was created");
   this.Settings.combination_rule_for_periodic_responses = spectral_analysis_settings[SetPeriodicCombinationRule(combinationRulePeriodic)];
   this.Settings.combination_rule_for_directional_components = spectral_analysis_settings[SetDirectionalCombinationRule(combinationRuleDirectional)];
    if (this.Settings.combination_rule_for_directional_components === "SCALED_SUM") {
      if (scaledSumDirectionalComponentValue !== undefined) {
       this.Settings.combination_rule_for_directional_components_value = scaledSumDirectionalComponentValue;
      }
      else {
       this.Settings.combination_rule_for_directional_components_value = 0.3;
      }
    }
    if (useEquivalentLinearCombination === true) {
     this.Settings.use_equivalent_linear_combination = true;
    }
    if (signedResultsUsingDominantMode === true) {
     this.Settings.signed_results_using_dominant_mode = true;
    }
    if (saveResultsOfAllSelectedModes === true) {
     this.Settings.save_results_of_all_selected_modes = true;
    }
    set_comment_and_parameters(this.Settings, comment, params);
    console.log("-- Done. spectral analysis settings no. " +this.Settings.no + " all initial params set.");
    var self = this;
    return self;
  }
}
function SpectralAnalysisSettings ( no , name , combinationRulePeriodic , combinationRuleDirectional , scaledSumDirectionalComponentValue , useEquivalentLinearCombination , signedResultsUsingDominantMode , saveResultsOfAllSelectedModes , comment , params ) { if ( arguments . length !== 0 ) { ASSERT ( typeof no != undefined || typeof no != "number" , "No must be assigned as an integer." ) ; ASSERT ( typeof type != undefined || typeof name != "string" , "Name must be assigned as a string." ) ; if ( no === undefined ) { this . Settings = spectral_analysis_settings . create ( ) ; } else { this . Settings = spectral_analysis_settings . create ( no ) ; } if ( name !== undefined ) { this . Settings . user_defined_name_enabled = true ; this . Settings . name = name ; } console . log ( "New spectral analysis settings no. " + this . Settings . no + " was created" ) ; this . Settings . combination_rule_for_periodic_responses = spectral_analysis_settings [ SetPeriodicCombinationRule ( combinationRulePeriodic ) ] ; this . Settings . combination_rule_for_directional_components = spectral_analysis_settings [ SetDirectionalCombinationRule ( combinationRuleDirectional ) ] ; if ( this . Settings . combination_rule_for_directional_components === "SCALED_SUM" ) { if ( scaledSumDirectionalComponentValue !== undefined ) { this . Settings . combination_rule_for_directional_components_value = scaledSumDirectionalComponentValue ; } else { this . Settings . combination_rule_for_directional_components_value = 0.3 ; } } if ( useEquivalentLinearCombination === true ) { this . Settings . use_equivalent_linear_combination = true ; } if ( signedResultsUsingDominantMode === true ) { this . Settings . signed_results_using_dominant_mode = true ; } if ( saveResultsOfAllSelectedModes === true ) { this . Settings . save_results_of_all_selected_modes = true ; } set_comment_and_parameters ( this . Settings , comment , params ) ; console . log ( "-- Done. spectral analysis settings no. " + this . Settings . no + " all initial params set." ) ; var self = this ; return self ; } }
Constructor creates basic spectral analysis settings
 @class
 @classdesc Class for setting up the spectral analysis settings.
Constructor creates basic spectral analysis settings @class @classdesc Class for setting up the spectral analysis settings .
// Spectral anlysis settings : combination rules // Spectral analysis settings