Skip to content

Commit

Permalink
Added header and comments to STI related files
Browse files Browse the repository at this point in the history
  • Loading branch information
wbinek committed Jan 22, 2019
1 parent d897b4e commit e9da8b3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/isimpa/data_manager/projet_calculation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,8 @@ formatGABE::GABE_Data_Float* Compute_G_Param(const wxFloat32& t1,const wxFloat32

/**
* @brief Calcul du paramètre acoustique STI
* STI calculation is based on IEC:60268-16:2011 standard.
* TODO: Compensation for speaker spectrum.
*/
formatGABE::GABE_Data_Float* Compute_STI_Param(bool surf,wxFloat32 te,wxFloat32 gen,const std::vector<wxFloat32>& timeTable,const std::vector<std::vector<wxFloat32> >& tab_wj,const std::vector<wxInt32>& freqTable)
{
Expand Down
35 changes: 35 additions & 0 deletions src/isimpa/nc_curves.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
/* ----------------------------------------------------------------------
* I-SIMPA (http://i-simpa.ifsttar.fr). This file is part of I-SIMPA.
*
* I-SIMPA is a GUI for 3D numerical sound propagation modelling dedicated
* to scientific acoustic simulations.
* Copyright (C) 2007-2014 - IFSTTAR - Judicael Picaut, Nicolas Fortin
*
* I-SIMPA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* I-SIMPA is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or
* see <http://ww.gnu.org/licenses/>
*
* For more information, please consult: <http://i-simpa.ifsttar.fr> or
* send an email to i-simpa@ifsttar.fr
*
* To contact Ifsttar, write to Ifsttar, 14-20 Boulevard Newton
* Cite Descartes, Champs sur Marne F-77447 Marne la Vallee Cedex 2 FRANCE
* or write to scientific.computing@ifsttar.fr
* ----------------------------------------------------------------------*/

#include <wx/dynarray.h>
#include <wx/xml/xml.h>
#include <wx/filename.h>
Expand All @@ -8,6 +38,11 @@

#include <vector>

/**
* @file nc_curves.cpp
* @brief Contains sellected NC curves what allows to introduce background noise to STI calculation.
* See:https://www.engineeringtoolbox.com/nc-noise-criterion-d_725.html
*/
class nc_curves
{
private:
Expand Down

0 comments on commit e9da8b3

Please sign in to comment.