亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? alphaneuron.cpp

?? amygdata的神經網絡算法源代碼
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
            converged = 0;            iterate = 0;            // set the scheduled spike time to zero to keep            // the neuron from spiking when an inhibitory input            // spike has canceled a previously scheduled spike.            schedSpikeTime = 0;        }        else if (currState > 1.0) {            converged = 1;            iterate = 0;        }        else {            stateDelta = fabs(1.0 - currState);            threshCrs = (stateDelta / currDeriv) + lstThreshCrs;            LOGGER(6, "stateDelta: " << stateDelta << "\nthreshCrs: " << threshCrs << "\nlstThreshCrs: " << lstThreshCrs)            if ((threshCrs - lstThreshCrs) < convergeRes) {                if (stateDelta < 1.0) {                    converged = 1;                    iterate = 0;                    LOGGER(6, "threshCrs - lstThreshCrs < convergeRes -- Converged")                }                else {                    converged = 0;                    calcTime = int(threshCrs);                    lstThreshCrs = threshCrs;                    // set the scheduled spike time to zero to keep                    // the neuron from spiking when an inhibitory input                    // spike has canceled a previously scheduled spike.                    schedSpikeTime = 0;                }            }            else {                converged = 0;                if ((threshCrs-lstThreshCrs) > maxThreshCrs) {                //if (threshCrs > maxThreshCrs) {                    iterate = 0;                }                calcTime = int(threshCrs);                lstThreshCrs = threshCrs;                // set the scheduled spike time to zero to keep                // the neuron from spiking when an inhibitory input                // spike has canceled a previously scheduled spike.                schedSpikeTime = 0;            }        }    }    if (converged) {        // Make sure we wait at least one cycle before spiking        if (calcTime == inTime) {            calcTime += simStepSize;        }        schedSpikeTime = calcTime;        LOGGER(5, "Neuron " << nId << " Scheduling spike at " << schedSpikeTime)        		Network::GetNetworkRef()->ScheduleSpike( schedSpikeTime, this );    }}float AlphaNeuron::GetMembranePtnl() const{    float currState=0.0, currDeriv=0.0;    unsigned int histSize = inputHist.size();    unsigned int hbi = histBeginIdx;    //AmTimeInt calcTime = Node::SimTime();    AmTimeInt calcTime = Network::GetNetworkRef()->SimTime();    Utilities::RoundTime(calcTime, pspStepSize);    for (unsigned int i=hbi; i<histSize; i++) {        InputHist tmpInput = inputHist[i];        AmTimeInt funcTime = calcTime - tmpInput.time;        float funcWeight = tmpInput.weight;        unsigned int tblIndex = (funcTime / pspStepSize);        if (tblIndex < pspLSize) {            if ( funcWeight > 0.0 ) {                currState = currState + (funcWeight * (epspLookup[tblIndex]));                currDeriv = currDeriv + (funcWeight * (edPspLookup[tblIndex]));            }            else {                currState = currState + (funcWeight * (ipspLookup[tblIndex]));                currDeriv = currDeriv + (funcWeight * (idPspLookup[tblIndex]));            }        }        else {            ++hbi;        }    }    return currState;}void AlphaNeuron::ScaleFunctionLookups(){    unsigned int i;    float lastPtnl=0.0;    float maxPtnl=0.0;    for (i=0; i<pspLSize; ++i) {        maxPtnl = epspLookup[i];        //maxDPtnl = edPspLookup[i];        if (maxPtnl < lastPtnl) {            maxPtnl = lastPtnl;            break;        }        else {            lastPtnl = maxPtnl;        }        /*if (maxDPtnl < lastDPtnl) {            maxDPtnl = lastDPtnl;            break;        }        else {            lastDPtnl = maxDPtnl;        } */    }    if (maxPtnl == 0.0)        return;    // Normalize the function -- a small number is added to the    // peak to make sure that a weight of 1 will cross the threshold    float scaleFactor = 1.0/maxPtnl + 0.000001;    //float dscaleFactor = 1.0/maxDPtnl;    for (i=0; i<pspLSize; i++) {        epspLookup[i] = scaleFactor*epspLookup[i];        edPspLookup[i] = scaleFactor*edPspLookup[i];    }    // maxScaledWeight is increased a little bit beyond its    // true value to make sure that a weight of 1.0 will always    // exceed the threshold at the peak of the psp curve.//    maxScaledWeight = ( thresholdPtnl / maxPtnl ) + 0.000001;    // Scale the inhibitory psp to match the amplitude of the epsp.    // This will ensure consistent behavior for all time constants    // (the maximum of the ipsp gets lower with increasing synaptic    // time constants).    float imaxPtnl = 0.0;    lastPtnl = 0.0;    for (i=0; i<pspLSize; i++) {        imaxPtnl = ipspLookup[i];        //imaxDPtnl = idPspLookup[i];        if (imaxPtnl < lastPtnl) {            imaxPtnl = lastPtnl;            break;        }        else {            lastPtnl = imaxPtnl;        }        /*if (imaxDPtnl < lastDPtnl) {            imaxDPtnl = lastDPtnl;            break;        }        else {            lastDPtnl = imaxDPtnl;        }*/    }    //scaleFactor = 1.0*maxPtnl/imaxPtnl;    scaleFactor = 1.0/imaxPtnl;    //dscaleFactor = 0.9*maxDPtnl/imaxDPtnl;    for (i=0; i<pspLSize; i++) {        ipspLookup[i] = scaleFactor*ipspLookup[i];        idPspLookup[i] = scaleFactor*idPspLookup[i];    }}void AlphaNeuron::PrintLookupTables(){    cout << "\n\nPrinting excitatory tables:\nepspLookup:\n\n";    for (unsigned int i=0; i<pspLSize; ++i) {        cout << i << "\t" << epspLookup[i] << endl;    }    /*cout << "\n\nedPspLookup:\n\n";    for (unsigned int i=0; i<pspLSize; ++i) {        cout << i << "\t" << edPspLookup[i] << endl;    }*/    cout << "\n\nPrinting inhibitory tables:\nipspLookup:\n\n";    for (unsigned int i=0; i<pspLSize; ++i) {        cout << i << "\t" << ipspLookup[i] << endl;    }    /*cout << "\n\nidPspLookup:\n\n";    for (unsigned int i=0; i<pspLSize; ++i) {        cout << i << "\t" << idPspLookup[i] << endl;    }*/}void AlphaNeuron::InitLookup(){	FunctionLookup* fl = Network::GetNetworkRef()->GetFunctionLookup();	try {		TableProperties t0 = GetTableProps(0);		TableProperties t1 = GetTableProps(1);		TableProperties t2 = GetTableProps(2);		TableProperties t3 = GetTableProps(3);		epspLookup = fl->GetTableData(t0);		edPspLookup = fl->GetTableData(t1);		ipspLookup = fl->GetTableData(t2);		idPspLookup = fl->GetTableData(t3);	}	catch (TableNotFoundException& e) {		//pspLookup = fl->MakeLookupTable(props);		MakeLookupTables();		//PrintLookupTables();	}}TableProperties AlphaNeuron::GetTableProps(unsigned int index){	TableProperties props;	props.SetClassName("AlphaNeuron");	props.SetTableSize(pspLSize);	AlphaNeuronProperties* anProps = dynamic_cast<AlphaNeuronProperties*>(neuronProps);	float membraneConst = anProps->GetMembraneConst();	float eSynConst = anProps->GetExcitatorySynapseConst();	float iSynConst = anProps->GetInhibitorySynapseConst();	props.AddParam((AmTimeInt)index);	props.AddParam(membraneConst);	props.AddParam(eSynConst);	props.AddParam(iSynConst);	return props;}void AlphaNeuron::MakeLookupTables(){	FunctionLookup* fl = Network::GetNetworkRef()->GetFunctionLookup();		TableProperties t0 = GetTableProps(0);	TableProperties t1 = GetTableProps(1);	TableProperties t2 = GetTableProps(2);	TableProperties t3 = GetTableProps(3);	LOGGER(6, "Making lookup tables")    epspLookup = fl->MakeLookupTable(t0);    edPspLookup = fl->MakeLookupTable(t1);    ipspLookup = fl->MakeLookupTable(t2);    idPspLookup = fl->MakeLookupTable(t3);    LOGGER(6, "Lookups made")    	AlphaNeuronProperties* anProps = dynamic_cast<AlphaNeuronProperties*>(neuronProps);	float membraneConst = anProps->GetMembraneConst();	float eSynConst = anProps->GetExcitatorySynapseConst();	float iSynConst = anProps->GetInhibitorySynapseConst();	// TODO: Need to add in code for iSynConst here and in Euler	Euler* eul = new Euler(1, 0, 100000, eSynConst, iSynConst, membraneConst);	LOGGER(6, "Filling lookup tables")    eul->GenExcitatoryTable(pspStepSize, epspLookup, edPspLookup);    eul->GenInhibitoryTable(pspStepSize, ipspLookup, idPspLookup);        delete eul;    ScaleFunctionLookups();}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人免费在线播放视频| 国产精品白丝在线| 成人av先锋影音| 日韩在线观看一区二区| 精品国产区一区| 色拍拍在线精品视频8848| 久久精品国产精品亚洲精品| 国产精品成人在线观看| 精品裸体舞一区二区三区| 99久久国产综合精品麻豆| 精品一区在线看| 亚洲第一激情av| 日韩理论片在线| 国产亲近乱来精品视频| 欧美一区二区女人| 欧美午夜精品一区二区三区 | 国产精品乱人伦一区二区| 91精品在线观看入口| 91日韩一区二区三区| 国产精品羞羞答答xxdd| 麻豆国产精品777777在线| 亚洲午夜视频在线| 成人免费在线视频| 中文av一区二区| 久久久久久久久久久久电影 | 亚洲国产日韩精品| 最好看的中文字幕久久| 国产欧美精品一区aⅴ影院| 日韩欧美国产综合在线一区二区三区| 91久久国产最好的精华液| 99久久久精品免费观看国产蜜| 国产成人夜色高潮福利影视| 韩国v欧美v日本v亚洲v| 国产中文字幕精品| 精品亚洲成a人| 奇米影视一区二区三区| 日韩影院精彩在线| 午夜精品免费在线| 日日欢夜夜爽一区| 日韩电影在线观看网站| 日本一区中文字幕| 日韩av午夜在线观看| 全国精品久久少妇| 美女mm1313爽爽久久久蜜臀| 亚洲无线码一区二区三区| 亚洲人成在线播放网站岛国| 一区二区中文字幕在线| 亚洲免费在线观看| 国产精品理论片| 欧美国产日韩亚洲一区| 国产精品久久久久影院亚瑟| ㊣最新国产の精品bt伙计久久| 综合激情成人伊人| 亚洲免费视频成人| 日韩成人av影视| 蜜臀av一区二区在线免费观看| 精品影院一区二区久久久| 国产精品一色哟哟哟| 99在线热播精品免费| 91麻豆精品在线观看| 国产91在线|亚洲| 91麻豆免费视频| 欧美一区二区三区啪啪| 欧美一区二区三区免费大片 | 在线观看不卡一区| 91丨九色丨黑人外教| 精品视频一区 二区 三区| 欧美久久久一区| 久久免费电影网| 亚洲三级电影网站| 日韩av中文字幕一区二区| 国产精品亚洲视频| 欧洲日韩一区二区三区| 日韩欧美另类在线| 国产精品久久久久9999吃药| 亚洲成人精品一区| 国产尤物一区二区在线| 在线观看三级视频欧美| 欧亚洲嫩模精品一区三区| 26uuu久久天堂性欧美| 久久在线观看免费| 亚洲国产成人一区二区三区| 欧美极品美女视频| 国产亚洲午夜高清国产拍精品| 在线观看三级视频欧美| 国产精品一区二区无线| 国产精品免费av| 日韩一区二区不卡| 亚洲国产精品激情在线观看 | 国产午夜精品在线观看| 亚洲免费观看视频| 九一九一国产精品| 91福利在线导航| 久久久.com| 亚洲妇熟xx妇色黄| av在线不卡电影| 日韩欧美国产高清| 亚洲韩国精品一区| 国产成人av福利| 91精品久久久久久久99蜜桃| 国产精品伦一区| 激情欧美一区二区三区在线观看| 91精品办公室少妇高潮对白| 国产喂奶挤奶一区二区三区| 亚洲电影在线免费观看| 成人成人成人在线视频| 精品少妇一区二区三区免费观看| 一区二区成人在线观看| 国产91综合一区在线观看| 欧美电影精品一区二区| 亚洲高清一区二区三区| 不卡视频在线观看| 久久精品网站免费观看| 免费观看一级特黄欧美大片| 欧美最新大片在线看| 国产精品初高中害羞小美女文| 国产一区二区三区免费在线观看| 7777精品伊人久久久大香线蕉超级流畅 | 美女免费视频一区| 欧美精品丝袜久久久中文字幕| 亚洲欧美区自拍先锋| bt7086福利一区国产| 国产亚洲成aⅴ人片在线观看| 五月天激情综合网| 欧美亚一区二区| 一区二区三区在线不卡| 色哟哟国产精品| 中文字幕一区二区三区乱码在线| 懂色av一区二区三区免费观看| 欧美成人女星排名| 欧美aa在线视频| 欧美日韩精品一区二区天天拍小说 | 久久福利资源站| 日韩欧美成人一区二区| 日本欧美一区二区三区乱码| 欧美自拍偷拍一区| 亚洲一区二区三区国产| 欧美视频一区二区三区| 亚洲已满18点击进入久久| 在线免费观看不卡av| 一级特黄大欧美久久久| 在线亚洲欧美专区二区| 亚洲精品中文在线影院| 欧美视频一区二区三区四区 | 亚洲va欧美va人人爽午夜| 91传媒视频在线播放| 亚洲自拍偷拍麻豆| 欧美亚洲国产一区二区三区va | 欧美一级日韩一级| 久久精品国产秦先生| www久久精品| 成人午夜看片网址| 亚洲欧洲精品一区二区三区| 97超碰欧美中文字幕| 亚洲第一激情av| 精品国产乱码久久久久久老虎| 国产在线不卡一区| 成人欧美一区二区三区1314| 欧洲精品一区二区| 视频一区二区国产| 欧美www视频| 成人免费黄色在线| 一区二区理论电影在线观看| 日韩一区二区在线播放| 国产激情一区二区三区桃花岛亚洲| 国产色一区二区| 91久久久免费一区二区| 日韩电影一区二区三区四区| 国产性做久久久久久| 色94色欧美sute亚洲13| 久久精品国产精品青草| 国产精品久久久久天堂| 欧美日本国产一区| 国产一区久久久| 亚洲精品国产无天堂网2021| 日韩一区二区麻豆国产| 成人精品电影在线观看| 午夜欧美视频在线观看| 久久丝袜美腿综合| 一本久久综合亚洲鲁鲁五月天| 日韩电影在线一区二区| 国产精品美女久久久久久久| 欧美人体做爰大胆视频| 国产美女av一区二区三区| 亚洲啪啪综合av一区二区三区| 日韩一区二区在线观看视频播放| 成人性生交大合| 日本不卡一区二区| 亚洲欧洲综合另类| 26uuu亚洲婷婷狠狠天堂| 91成人看片片| 国产麻豆精品视频| 日本成人中文字幕| 亚洲精品日韩一| 久久毛片高清国产| 欧美一区二区三区性视频| 91麻豆自制传媒国产之光| 国产精品一区二区你懂的| 亚洲成人av电影| 亚洲欧美国产77777|