Clustering occurs objects are grouped together based on similarity. These grouped objects are called clusters. Clustering is a technique that is often use in data mining and analysis. There are two primary kinds of clustering: hard clustering and soft clustering. Hard clustering states that an object can belong to only one cluster (if any) while soft clustering doesn’t dictate the number of clusters an object can belong to. Clustering is typically used for pattern recognition, image recognition, and data mining.