I am trying to find the way how to represent characteristic function of a single-point set. My idea was to write the points by set:
Ainput = {{2/5, 1/4}};
ListPlot[Ainput, PlotRange -> {{0, 1}, {0, 1}}]
Now I want to find a y coordinates for points
{{x -> 2/5}, {x -> 3/5}}
but because I don't have Ainput defined like a function it gives me in both points 0 results instead of 1/4,0. Do you have any suggestions how could I define the function or how could I find the y-coordinate? Thank you.
KroneckerDelta
:In[166]:= f[x_] := 1/4*KroneckerDelta[x - 2/5] Map[f, {2/5, 3/5}] Out[167]= {1/4, 0}
$\endgroup$