I don't know if the title makes sense (or if the question makes sense at all for that matter) but here I go.
Suppose I have a piecewise constant function $y=f(x)$ with $x,y\in\mathbb{R}^+$, described as follows \begin{align} y = \left\{ \begin{array}{lr} y_1 : x \in [0,x_1)\\ y_2 : x \in [x_1,x_2)\\ \ \vdots\\ y_n : x \in [x_{n-1},x_n) \end{array} \right.\end{align}
Now for such a function I define a quantity called $C$ that is given by $$ C = \sum_{i=1}^n y_i(x_i - x_{i-1})^k $$ where $k \in (1,2)$.
I want to be able to compute this quantity for arbitrary positive-valued functions that have finitely many discontinuities on the interval $[0,x_n)$. I cannot figure out how to go from the summation above to integration.
I have the feeling that if I define a measure for a closed interval $[a,b]$ as $(b-a)^k$ that might lead to something but then how do I compute the integral for a simple function like $y = x$? I am a bit lost. I would really appreciate some help.