diff --git a/nars_core/nars/plugin/perception/VisionChannel.java b/nars_core/nars/plugin/perception/VisionChannel.java index aa317564fdba3665a5fa5b383638c1fd8c2c3d2a..48dbfc5de73ce8bfb05b57ad9e38980754736277 100644 --- a/nars_core/nars/plugin/perception/VisionChannel.java +++ b/nars_core/nars/plugin/perception/VisionChannel.java @@ -41,10 +41,13 @@ public class VisionChannel extends SensoryChannel { } int x = t.getTerm().term_indices[2]; int y = t.getTerm().term_indices[3]; - inputs[y][x] = t.sentence.getTruth().getFrequency(); if(!updated[y][x]) { + inputs[y][x] = t.sentence.getTruth().getFrequency(); cnt_updated++; updated[y][x] = true; + } else { //a second value, so take average of frequencies + //revision wouldn't be proper as each sensory point can just have 1 vote + inputs[y][x] = (inputs[y][x]+t.sentence.getTruth().getFrequency()) / 2.0f; } if(cnt_updated == height*width) { cnt_updated = 0;