Factor Graphs For Quantitative Data