Density measurement via magnetic levitation: Linear relationship investigation