I need to create a function which replicates what imsegkmean s is doing right in this code.

Posted Date: