local density profile is calculated.