示例#1
0
     public JitterBugShaping(string binaryMessage, List<decimal> ipds, JitterBugInfo info, List<decimal> trainingIpds, int numBins)
         : base(binaryMessage, ipds, info)
     {
         _entropyClass = new Entropy(null, trainingIpds, numBins, 0);
 
         SetupBins(numBins);
         CreateFlow();
     }
示例#2
0
        protected JitterBugBase(string binaryMessage, List <decimal> ipds, JitterBugInfo info)
            : base(ipds)
        {
            _info          = info;
            _binaryMessage = binaryMessage;

            SetupRandomSequence();
        }
示例#3
0
        public JitterBugShaping(string binaryMessage, List<decimal> ipds, JitterBugInfo info, List<decimal> trainingIpds, int numBins)
            : base(binaryMessage, ipds, info)
        {
            _entropyClass = new Entropy(null, trainingIpds, numBins, 0);

            SetupBins(numBins);
            CreateFlow();
        }
示例#4
0
        protected JitterBugBase(string binaryMessage, List<decimal> ipds, JitterBugInfo info)
            : base(ipds)
        {
            _info = info;
            _binaryMessage = binaryMessage;

            SetupRandomSequence();
        }
示例#5
0
        public static JitterBugBase Create(string message, List<decimal> ipds, JitterBugType type, List<decimal> trainingIpds, int numBins, JitterBugInfo jBugInfo)
        {
            string binaryMessage = ConvertToBinary(message);

            JitterBugBase jitterBase;

            switch(type)
            {
                case JitterBugType.Rnd:
                    jitterBase = new JitterBugRnd(binaryMessage, ipds, jBugInfo);
                    break;
                case JitterBugType.NonRnd:
                    jitterBase = new JitterBugNonRnd(binaryMessage, ipds, jBugInfo);
                    break;
                case JitterBugType.Shaping:
                    jitterBase = new JitterBugShaping(binaryMessage, ipds, jBugInfo, trainingIpds, numBins);
                    break;
                default:
                    throw new ApplicationException("Unknown Jitterbug type!");
            }

            return jitterBase;
        }
示例#6
0
        public static JitterBugBase Create(string message, List <decimal> ipds, JitterBugType type, List <decimal> trainingIpds, int numBins, JitterBugInfo jBugInfo)
        {
            string binaryMessage = ConvertToBinary(message);

            JitterBugBase jitterBase;

            switch (type)
            {
            case JitterBugType.Rnd:
                jitterBase = new JitterBugRnd(binaryMessage, ipds, jBugInfo);
                break;

            case JitterBugType.NonRnd:
                jitterBase = new JitterBugNonRnd(binaryMessage, ipds, jBugInfo);
                break;

            case JitterBugType.Shaping:
                jitterBase = new JitterBugShaping(binaryMessage, ipds, jBugInfo, trainingIpds, numBins);
                break;

            default:
                throw new ApplicationException("Unknown Jitterbug type!");
            }

            return(jitterBase);
        }
示例#7
0
 public JitterBugRnd(string binaryMessage, List <decimal> ipds, JitterBugInfo info)
     : base(binaryMessage, ipds, info)
 {
     EmbedMessage();
 }
示例#8
0
 public JitterBugNonRnd(string binaryMessage, List<decimal> ipds, JitterBugInfo info)
     : base(binaryMessage, ipds, info)
 {
     EmbedMessage();
 }