Remaining useful life prediction for a unit under time-varying operating conditions