KevinHoarau / BML

https://kevinhoarau.github.io/BML/
MIT License
14 stars 3 forks source link

Meaning of the “PrimingPeriod” field #4

Open YYM0093 opened 11 months ago

YYM0093 commented 11 months ago

Dear author: Your work has been very helpful to my current research, and I am very grateful for it! I have a question, what does "PrimingPeriod": 10 * 60, # 10 hours of pricing data "mean in the BML sample code? I have just come into this field and it may be a basic conceptual question. If possible, I hope you can help me answer it.

ljy278 commented 11 months ago

Suppose you want to collect messages from 17:00 to 18:00 and you set PrimingPeriod = 10 * 60, you will get 7:00(7 + 10 = 17) to 18:00

KevinHoarau commented 11 months ago

Suppose you want to collect messages from 17:00 to 18:00 and you set PrimingPeriod = 10 * 60, you will get 7:00(7 + 10 = 17) to 18:00

Exactly ! The reason you may want to do that is to have some initial data to start with. This is useful for the extraction of the network topology, as you need to collect some BGP routes before the period of interest in order to build the initial graph.

YYM0093 commented 11 months ago

Suppose you want to collect messages from 17:00 to 18:00 and you set PrimingPeriod = 10 * 60, you will get 7:00(7 + 10 = 17) to 18:00

Exactly ! The reason you may want to do that is to have some initial data to start with. This is useful for the extraction of the network topology, as you need to collect some BGP routes before the period of interest in order to build the initial graph.

Thank you very much for your reply! I understand what you mean, if I only want to collect data for a specific time period (e.g. 12.00 - 13.00, without any preceeding time period), should I set the value of "PrimingPeriod" to 0?

KevinHoarau commented 11 months ago

From a conceptual point of view, yes. But, to be honest, I'm not sure if I have already tried to set the Priming Period to 0. Maybe you can try and if something goes wrong I'll fix the issue.