OMNET ++中的结果分析 [英] Results Analysis in OMNET++

查看:620
本文介绍了OMNET ++中的结果分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Veins框架与OMNET ++一起使用,以模拟高速公路场景.

I am using Veins framework with OMNET++ to simulate a highway scenario.

我正在使用cOutVector来收集实验结果.

I am using cOutVector to collect the results from my experiments.

我有1000多个节点(车辆),并且cOutVector分别为每个模块(节点)收集结果.但是,我需要收集总体结果.

I have more than 1000 nodes (vehicles), and the cOutVector collects results individually for each module (node). However, I need to collect the overall results.

例如,所有节点接收了多少个信标?反正有收集这样的结果吗?

For example, How many beacons were received by all nodes? Is there anyway of collecting such results?

推荐答案

在OMNeT ++中,输出结果可以保存为两种不同的类型,因此可以保存为文件格式:

In OMNeT++ the output results can be saved in two different types, and thus, file formats:

  1. 标量(*.sca)-包含整个模拟运行的摘要数据(平均值,总和,计数,最大值,最小值)
  2. 向量(*.vec)-包含模拟运行每一秒的细粒度数据(以时间序列的形式)
  1. Scalars (*.sca) - contain summary data (mean, sum, count, max, min) for the whole simulation run
  2. Vectors (*.vec) - contain fine-grained data (in form of time series) for each second of the simulation run

输出文件格式与OMNeT ++的statistic机制紧密结合.统计信息允许您存储不同的结果记录模式,例如:计数,总和,均值,向量.

The output file formats are tightly coupled with the statistic mechanisms of OMNeT++. The statistics allow you to store different result recording modes, such as: count, sum, mean, vector.

在您的情况下,您需要查看每个节点的sum.

In your case you would need to look at the sum for each of your nodes.

@statistic[foo](record=count,mean,vector);


这些OMNeT ++机制在开始时似乎很复杂,但是一旦您扎紧脑袋,它们就很容易了.此外,它们非常强大,可为您模拟的许多方面提供见解.


These OMNeT++ mechanism seem complicated in the beginning, but they are rather easy once you wrap your head around. Also, they are very powerful giving insights to many aspects of your simulations.

  • 要了解标量和向量之间的区别,请阅读.
  • 要了解使用信号记录结果的信息,请阅读.
  • 有关如何使用信号并记录特定统计信息的具体示例,指标,请在此处查看我的详细答案.
  • To understand the difference between scalars and vectors read this.
  • To understand results recording using signals read this.
  • For a concrete example of how to use the signals and record a specific statistic & metric, check my detailed answer here.

不幸的是,在不知道您的代码的情况下,不可能为您的情况提供即用型"解决方案.

Unfortunately, it is impossible to provide a "ready-to-use" solution for your case without knowing your code.

这篇关于OMNET ++中的结果分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆