This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* convolute.hpp | |
* | |
* Created on: 28-Jul-2019 | |
* Author: Pijush Barik ([email protected]) | |
* | |
* I didn't found a convolution code (with border reflect 101 method) on the | |
* internet, may be didn't search well. | |
* This code is not optimized. If you find it useful please left a review or | |
* help this code to be optimize or bug free. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var charCodeOfM = "m".charCodeAt(0); | |
function getDecoded(char) { | |
var charcode = char.toLowerCase().charCodeAt(0); | |
var decoded; | |
if(charcode <= charCodeOfM) { | |
decoded = charcode + 13; | |
} else { | |
decoded = charcode - 13; | |
} |