Samadhi is such a subtle state of chitta (mind stuff) and intellect as brings face-to-face the subtle and essential nature of objects by analyzing them. In this knowledge there is no possibility of doubt, wrong or perverted knowledge or imagination. By the discourse of the sages in scriptures.
Yog Samadhi ?
Only general knowledge of an object can be gained, but the special knowledge attained by Samadhi is beyond the grasp of the senses and is the means of attaining. Moksha or liberation. By showing this super sensual knowledge the Samadhi-s takes one to the very gate of moksha.
Both the samkhya and the yoga schools of philosophy consider Alinga prakriti (non-manifest nature) to be the balanced state of the three guna-s (sattwa, rajas and tamas-purity, passion, inertia) and all objects of the world, being evolved from prakriti, have the nature of the three guna-s (qulitities).
knowledge of the objects is also in accordance with the three guna-s, therefore chitta and Buddhi (mind –stuff and intellect) are expression of the three guna-s and demonstrate cause and effect. But they are unable to show atman or chetna tattwa (the conscious principle) directly. Thus these Samadhi-s too are special expression of three Guna-s because they are all states of mind –stuff and intellect which consist of the three Guna-s. therefore, according to the predominating Guna in the chitta and Buddhi(mind-stuff and intellect), Yoga Samadhi is also associated with the same guna.