Inequalities of Hermite–Hadamard type for HH-convex functions