Skip to content

quick look at data generation - #3

Closed
ofk123 wants to merge 6 commits into
simula:mainfrom
ofk123:ais
Closed

ofk123 wants to merge 6 commits into
simula:mainfrom
ofk123:ais

Conversation

@ofk123

@ofk123 ofk123 commented Jan 30, 2026

Copy link
Copy Markdown

No description provided.

start_time = randint(0, int(last_day.timestamp()))

sog_start = random() * SpeedOverGround.min_value / SpeedOverGround.max_value
sog_start = 0.0 # due to SpeedOverGround.min_value = 0 (?)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed setting to 0 is reflecting the current state, but it should actually be a random sample within the valid SOG range, so I suggest the following:

Suggested change
sog_start = 0.0 # due to SpeedOverGround.min_value = 0 (?)
sog_start = random.uniform(0,0.5)*SpeedOverGround.max_value

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

7011f1b

@ofk123

ofk123 commented Oct 22, 2026

Copy link
Copy Markdown
Author

superseded by #29

@ofk123 ofk123 closed this Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants