I was going through this video which explains the losses in a switching regulator(Basic Buck Converter). In this the author is calculating only resistive losses and diode losses.

For calculating resistive losses he is considering RMS current through the resistor and for calculating diode losses average current is taken to consideration.May I know why is it so.

How to decide when to consider average current and when to consider the average current.

Regards

HARI