This is a method for the generic function intensity
It computes the empirical intensity of a point pattern
on a linear network (object of class "lpp"
),
i.e. the average density of points per unit length.
If the point pattern is multitype, the intensities of the
different types are computed separately.