Measuring the Hubble function with standard candle clustering