Skip to content
Snippets Groups Projects
Select Git revision
  • 406f14a34ab2f5b23b8994afec2eaa3f86c69d29
  • master default
  • bing_issues#190_tf2
  • bing_tf2_convert
  • bing_issue#189_train_modular
  • simon_#172_integrate_weatherbench
  • develop
  • bing_issue#188_restructure_ambs
  • yan_issue#100_extract_prcp_data
  • bing_issue#170_data_preprocess_training_tf1
  • Gong2022_temperature_forecasts
  • bing_issue#186_clean_GMD1_tag
  • yan_issue#179_integrate_GZAWS_data_onfly
  • bing_issue#178_runscript_bug_postprocess
  • michael_issue#187_bugfix_setup_runscript_template
  • bing_issue#180_bugs_postprpocess_meta_postprocess
  • yan_issue#177_repo_for_CLGAN_gmd
  • bing_issue#176_integrate_weather_bench
  • michael_issue#181_eval_era5_forecasts
  • michael_issue#182_eval_subdomain
  • michael_issue#119_warmup_Horovod
  • bing_issue#160_test_zam347
  • ambs_v1
  • ambs_gmd_nowcasting_v1.0
  • GMD1
  • modular_booster_20210203
  • new_structure_20201004_v1.0
  • old_structure_20200930
28 results

metrics.py

Blame
  • Method_C.h 1.92 KiB
    /**
     * \file        Method_C.h
     * \date        Oct 10, 2014
     * \version     v0.7
     * \copyright   <2009-2015> Forschungszentrum J��lich GmbH. All rights reserved.
     *
     * \section License
     * This file is part of JuPedSim.
     *
     * JuPedSim is free software: you can redistribute it and/or modify
     * it under the terms of the GNU Lesser General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * any later version.
     *
     * JuPedSim 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 Lesser General Public License
     * along with JuPedSim. If not, see <http://www.gnu.org/licenses/>.
     *
     * \section Description
     *
     *
     **/
    
    #ifndef METHOD_C_H_
    #define METHOD_C_H_
    
    #include "PedData.h"
    #include "../Analysis.h"
    
    class Method_C
    {
    public:
         Method_C();
         virtual ~Method_C();
         bool Process (const PedData& peddata, const double& zPos_measureArea);
         void SetMeasurementArea (MeasurementArea_B* area);
    
    private:
         std::map<int , std::vector<int> > _peds_t;
         int _minFrame;
         std::string _measureAreaId;
         MeasurementArea_B* _areaForMethod_C;
         std::string _trajName;
         std::string _projectRootDir;
         float _fps;
         FILE *_fClassicRhoV;
         void OpenFileMethodC();
         void OutputClassicalResults(int frmNr, int numPedsInFrame, const std::vector<double>& XInFrame,const std::vector<double>& YInFrame, const std::vector<double>& VInFrame) const;
         double GetClassicalVelocity(const std::vector<double>& xs, const std::vector<double>& ys,  const std::vector<double>& VInFrame, int pednum) const;
         double GetClassicalDensity(const std::vector<double>& xs, const std::vector<double>& ys, int pednum, polygon_2d measurearea) const;
    
    };
    
    #endif /* METHOD_C_H_ */