A complexity measure approach based on forbidden patterns and correlation degree