简体   繁体   English

Omnet++ 中的 .vec 和 .sca 输出有什么区别?

[英]What is the difference between .vec and .sca output in Omnet++?

What is the difference between .vec and .sca output files in Omnet++ simulator? Omnet++ 模拟器中的 .vec 和 .sca 输出文件有什么区别? And, by your experience, when/how should I use one rather than the other?而且,根据您的经验,我应该何时/如何使用一个而不是另一个?

According to OMNeT++ Simulation Manual :根据OMNeT++ 模拟手册

Simulation results are recorded into output scalar files that actually hold statistics results as well, and output vector files.仿真结果被记录到实际保存统计结果的输出标量文件和输出矢量文件中。 The usual file extension for scalar files is .sca, and for vector files .vec.标量文件的常用文件扩展名是 .sca,而矢量文件的文件扩展名为 .vec。

When the simulation records a scalar value (ie single value), it goes to a .sca file.当模拟记录一个标量值(即单个值)时,它会转到一个.sca文件。 And when a vector (ie values over time) is to be recorded, a .vec file is used.当要记录向量(即随时间变化的值)时,将使用.vec文件。
As a consequence the user does not have to bother about which file will be used .因此,用户不必担心将使用哪个文件 Moreover, the result display in OMNeT++ by default scans both types of file and presents every scalar and vector that are found.此外,OMNeT++ 中的结果显示默认扫描这两种类型的文件并显示找到的每个标量和向量。

Vector files show every event that happened Scalar is more of a summary of all the events that happened.矢量文件显示发生的每个事件 标量更多的是对发生的所有事件的总结。

I prefer using Vector files as I can nitpick the values I want to do analysis.我更喜欢使用矢量文件,因为我可以挑剔我想要进行分析的值。

You can try TicTok part 5 to better understand the difference between the files.您可以尝试 TicTok 第 5 部分以更好地了解文件之间的区别。 https://docs.omnetpp.org/tutorials/tictoc/part5/ https://docs.omnetpp.org/tutorials/tictoc/part5/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM