On the generalized convexity and concavity