ioam / topographica

A general-purpose neural simulator focusing on topographic maps.
topographica.org
BSD 3-Clause "New" or "Revised" License
53 stars 32 forks source link

How to generate two-gaussian pattern with fixed distance #690

Open dancehours opened 5 years ago

dancehours commented 5 years ago

Dear Bednar,

I am trying to generate a pattern of two gaussians which have fixed distance to each other, e.g. np.exp(-0.5*x_w1*x_w1 + -0.5*y_h1*y_h1) + np.exp(-0.5*x_w2*x_w2 + -0.5*y_h2*y_h2) here x_w2 = x_w1-0.3, y_h2 = y_h1 -0.4. But Class Patterngenerator seems doesn't work for this type of functions. One gaussian can work. How to get this two gaussian work by the Patterngenerator ?

jbednar commented 5 years ago

I'm not sure precisely what you mean, but you can create any arbitrary pattern you like. You can see examples at http://ioam.github.io/imagen , e.g. if you search for "lefteye".