inline samplinbg and representative sampling

inline samplinbg and representative sampling