Include circular distribution of theta into calculating affinity