float function ( final float [ ] arg0 , final float [ ] arg1 ) { return 1.0f - cosineMargin ( arg0 , arg1 ) ; }
compute the cosine distance between two vectors , which runs from 0 closest to 2 farthest . concode_field_sep int minLeafSize concode_elem_sep int kFloatSize concode_elem_sep int node concode_elem_sep float margin concode_elem_sep int nodeSize concode_elem_sep MappedByteBuffer annBuf concode_elem_sep int kNodeHeaderSize concode_elem_sep float[] zeros concode_elem_sep ArrayList<Integer> roots concode_elem_sep int dimension concode_field_sep void init concode_elem_sep void getItemVector concode_elem_sep void load concode_elem_sep float cosineMargin concode_elem_sep List<Integer> getNearest concode_elem_sep void main concode_elem_sep int compareTo concode_elem_sep void getNodeVector concode_elem_sep double norm