Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kalman error value being calculated as NaN #113

Open
scrudden opened this issue Oct 11, 2018 · 1 comment
Open

Kalman error value being calculated as NaN #113

scrudden opened this issue Oct 11, 2018 · 1 comment
Labels

Comments

@scrudden
Copy link
Member

Kalman error value being calculated as NaN resulting in a 0 prediction for the stoppath. See bold items on log below. Will set to default error value if NaN encountered.

18:51:15.234 Generating Kalman prediction for : Indices [blockId=5, tripId=5, tripIndex=0, stopPathIndex=11, segmentIndex=0]

18:51:15.234 Kalman is using historical value : TravelTimeDetails [departure=Departure [vehicleId=1119, time=10-09-2018 12:41:37.582 EST, route=C, rteName=C, directionId=1, stop=122, gtfsStopSeq=11, stopIdx=10, freqStartTime=Tue Oct 09 13:59:59 EDT 2018, stopOrder=10, avlTime=12:42:23.000 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=163.05m], arrival=Arrival [vehicleId=1119, time=10-09-2018 12:42:10.985 EST, route=C, rteName=C, directionId=1, stop=120, gtfsStopSeq=12, stopIdx=11, freqStartTime=Tue Oct 09 13:59:59 EDT 2018, stopOrder=11, avlTime=12:42:23.000 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=100.80m], getTravelTime()=33403, sanityCheck()=true] for : Indices [blockId=5, tripId=5, tripIndex=0, stopPathIndex=11, segmentIndex=0]

18:51:15.234 Kalman is using historical value : TravelTimeDetails [departure=Departure [vehicleId=1701, time=10-08-2018 12:37:36.742 EST, route=C, rteName=C, directionId=1, stop=122, gtfsStopSeq=11, stopIdx=10, freqStartTime=Mon Oct 08 13:55:14 EDT 2018, stopOrder=10, avlTime=12:38:00.000 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=163.05m], arrival=Arrival [vehicleId=1701, time=10-08-2018 12:38:05.741 EST, route=C, rteName=C, directionId=1, stop=120, gtfsStopSeq=12, stopIdx=11, freqStartTime=Mon Oct 08 13:55:14 EDT 2018, stopOrder=11, avlTime=12:38:00.000 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=100.80m], getTravelTime()=28999, sanityCheck()=true] for : Indices [blockId=5, tripId=5, tripIndex=0, stopPathIndex=11, segmentIndex=0]

18:51:15.234 Kalman is using historical value : TravelTimeDetails [departure=Departure [vehicleId=1120, time=09-25-2018 12:16:09.981 EST, route=C, rteName=C, directionId=null, stop=122, gtfsStopSeq=11, stopIdx=10, freqStartTime=2018-09-25 13:31:23.776, stopOrder=-1, avlTime=12:16:31.000 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=163.05m], arrival=Arrival [vehicleId=1120, time=09-25-2018 12:16:38.980 EST, route=C, rteName=C, directionId=null, stop=120, gtfsStopSeq=12, stopIdx=11, freqStartTime=2018-09-25 13:31:23.776, stopOrder=-1, avlTime=12:16:31.000 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=100.80m], getTravelTime()=28999, sanityCheck()=true] for : Indices [blockId=5, tripId=5, tripIndex=0, stopPathIndex=11, segmentIndex=0]

18:51:15.234 Kalman is using historical value : TravelTimeDetails [departure=Departure [vehicleId=1120, time=09-19-2018 12:39:02.236 EST, route=C, rteName=C, directionId=null, stop=122, gtfsStopSeq=11, stopIdx=10, freqStartTime=2018-09-19 13:59:16.222, stopOrder=-1, avlTime=12:39:05.774 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=163.05m], arrival=Arrival [vehicleId=1120, time=09-19-2018 12:39:09.916 EST, route=C, rteName=C, directionId=null, stop=120, gtfsStopSeq=12, stopIdx=11, freqStartTime=2018-09-19 13:59:16.222, stopOrder=-1, avlTime=12:39:05.774 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=100.80m], getTravelTime()=7680, sanityCheck()=true] for : Indices [blockId=5, tripId=5, tripIndex=0, stopPathIndex=11, segmentIndex=0]

18:51:15.234 Kalman is using historical value : TravelTimeDetails [departure=Departure [vehicleId=1701, time=09-17-2018 12:33:54.863 EST, route=C, rteName=C, directionId=null, stop=122, gtfsStopSeq=11, stopIdx=10, freqStartTime=2018-09-17 13:53:04.591, stopOrder=-1, avlTime=12:34:04.074 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=163.05m], arrival=Arrival [vehicleId=1701, time=09-17-2018 12:34:03.709 EST, route=C, rteName=C, directionId=null, stop=120, gtfsStopSeq=12, stopIdx=11, freqStartTime=2018-09-17 13:53:04.591, stopOrder=-1, avlTime=12:34:04.074 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=100.80m], getTravelTime()=8846, sanityCheck()=true] for : Indices [blockId=5, tripId=5, tripIndex=0, stopPathIndex=11, segmentIndex=0]

18:51:15.234 Kalman Error value : NaN for key: KalmanErrorCacheKey [tripId=5, stopPathIndex=11]

18:51:15.234 Using error value: NaN found with vehicle id 1119 from: KalmanErrorCacheKey [tripId=5, stopPathIndex=11]

18:51:15.234 Using last vehicle value: TravelTimeDetails [departure=Departure [vehicleId=1119, time=10-11-2018 12:32:46.261 EST, route=C, rteName=C, directionId=1, stop=122, gtfsStopSeq=11, stopIdx=10, freqStartTime=Thu Oct 11 13:50:23 EDT 2018, stopOrder=10, avlTime=12:33:06.000 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=163.05m], arrival=Arrival [vehicleId=1119, time=10-11-2018 12:33:15.260 EST, route=C, rteName=C, directionId=1, stop=120, gtfsStopSeq=12, stopIdx=11, freqStartTime=Thu Oct 11 13:50:23 EDT 2018, stopOrder=11, avlTime=12:33:06.000 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=100.80m], getTravelTime()=28999, sanityCheck()=true] for : Indices [blockId=5, tripId=5, tripIndex=0, stopPathIndex=11, segmentIndex=0]

18:51:15.234 Setting Kalman error value: NaN for : KalmanErrorCacheKey [tripId=5, stopPathIndex=11]

18:51:15.234 Using last vehicle algorithm for prediction : TravelTimeDetails [departure=Departure [vehicleId=1119, time=10-11-2018 12:32:46.261 EST, route=C, rteName=C, directionId=1, stop=122, gtfsStopSeq=11, stopIdx=10, freqStartTime=Thu Oct 11 13:50:23 EDT 2018, stopOrder=10, avlTime=12:33:06.000 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=163.05m], arrival=Arrival [vehicleId=1119, time=10-11-2018 12:33:15.260 EST, route=C, rteName=C, directionId=1, stop=120, gtfsStopSeq=12, stopIdx=11, freqStartTime=Thu Oct 11 13:50:23 EDT 2018, stopOrder=11, avlTime=12:33:06.000 EST, trip=5, tripIdx=0, block=5, srv=Mo, cfg=0, pathLnth=100.80m], getTravelTime()=28999, sanityCheck()=true] for : Indices [blockId=5, tripId=5, tripIndex=0, stopPathIndex=11, segmentIndex=0]

18:51:15.234 Using Kalman prediction: 0 instead of LastVehiclePredictionGeneratorImpl prediction: 28999 for : Indices [blockId=5, tripId=5, tripIndex=0, stopPathIndex=11, segmentIndex=0]

scrudden added a commit that referenced this issue Oct 11, 2018
@scrudden
Copy link
Member Author

Fixed in tc_issue_80.

@scrudden scrudden added the bug label Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant