On CreateProximalSegments(int inputRadius, int localityRadius, InputSpace maxInputSpace, int longerSide) parameter inputRadius is never used. and localityRadius seems to be used as boolean. I think it's better to remove inputRadius from API and change this.Region.InputRadius to localityRadius in lines 585 top 588 then you can remove the unneeded if (localityRadius > 0) on line 582.
check clsColumn::wire2Input Here on C++ implementation.