Generalized kinds of density and the associated ideals