Ask Your Question

Nazila's profile - activity

2015-12-13 14:40:51 +0200 received badge  Student (source)
2015-12-13 14:34:12 +0200 asked a question I am new in python. How can i count repetetive array in numpy?

X = [[1,2], [5,1], [1,2], [2,-1] , [5,1]]

I want to count "frequency" of repetitive elements for example [1,2]

2015-12-13 14:34:12 +0200 asked a question self avoiding in two dimension. i dont know how can i choose succed walkers?
 for j in range(5):"number of walkers"
        x = 0; y = 0 
        k=0
        sites=[]
        x points=[]
        y points=[]
        for i in range(6):"number of walks"
            p=rand range(4)
            if p==0:
                x+=1
             elf p==1:
                y+=1
             elf p==2:
                x-=1
             elf p==3:
                y-=1
             sites.append([x,y])
             x points.append(x)
             y points.append(y)
            print sites
2015-12-13 14:34:12 +0200 asked a question How can i counter frequent array in numpy?

import numpy as np X=np.array[[1,2], [3,4], [1,2], [4,1]] "i want to counter repetitive [1,2]"