Making other variation of spatial pooling

hi every one ,I have been looking for different varieties of the SP algorithm for a times but I cant find.so I decided to change the original code by this ideas:

change the potential pool logic
change the boosting algorithm
change the initial connection parameters and logic
modify the k-winners calculation to something different

but I do not know what should I do to implement these idea to make another variation of SP . In the Spatial pooling library (source code) there are different parts that confuse me.
Could any one please explain more about these ideas and tell me exactly what to do?
For example, how to change the boosting algorithm?
What should I put instead of the k-winners and …?
do you have any other idea?
thanks for your kindness

Could you elaborate here?
Clearing these up would answer those all I think.

The two main variables I think of with SP are:

  • boosting-level

  • global vs local inhibition

I’d ensure a detailed knowledge of these mechanics before doing any modifications to the algorithm.