Theory and implementation of weighted distributed order integrator