Esempio n. 1
0
        public ILearningRule GetCopy()
        {
            STDPLearningRule copy = new STDPLearningRule(this.ampPositive, this.ampNegative,
                                                         this.taoPositive, this.taoNegative, this.dopamineConstant);

            return(copy);
        }
Esempio n. 2
0
        private HomeostasisLearningRule(STDPLearningRule stdpRule, float homeostasisAlpha,
                                        int homeostasisTargetRate, int homeostasisAveragingWindow)
        {
            stdp            = stdpRule;
            alpha           = homeostasisAlpha;
            targetRate      = homeostasisTargetRate;
            averagingWindow = homeostasisAveragingWindow;

            preNeuronStatisticsKey  = string.Format("home_{0}_{1}", targetRate, averagingWindow);
            postNeuronStatisticsKey = string.Format("home_{0}_{1}", targetRate, averagingWindow);
        }