Jensen's inequality for sums says that for $f$ convex, $$f\left(\sum_1^n \alpha_i x_i\right)\leq \sum_1^n \alpha_i f(x_i), \,\,\,\,\text{for } \sum_1^n \alpha_i = 1.$$ I have read that a generalization of it is that $$f\left(\frac{\sum_1^n \alpha_i x_i}{\sum_1^n \alpha_i}\right)\leq \frac{\sum_1^n \alpha_i f(x_i)}{\sum_1^n \alpha_i}.$$
Now I read Jensen's inequality for integrals: for $f,g$ functions, $f$ convex, $g$ and $f\circ g$ integrable, we have $$f\left(\int_0^1g(x) \, dx\right)\leq \int_0^1 (f\circ g)(x)\, dx.$$
What is the analogous generalization of this to an interval other than $[0,1]$? I don't think it's just dividing by the length of the interval...