Electrical faults detection for the intelligent diagnosis of a photovoltaic generator