Wouter Posted December 23, 2011 Report Share Posted December 23, 2011 VI Name: Hamming Weight and Hamming Distance Total VIs: 2 Description: One VI calculates the hamming weight, the other the hamming distance, Note: - Blockdiagram:Hamming weight (two versions, one with parallel loop, other without, didn't tested which one was faster) Hamming distance: What are you thoughts on this VI? Would you like to see such a function in OpenG? Can you optimize the code? In which package should it be included? Should it be rejected? Quote Link to comment
Darin Posted December 23, 2011 Report Share Posted December 23, 2011 Given that the OpenG standard is LV9, we should be posting VIs and snippets in that version. It is important to optimize for that version as well. Quote Link to comment
jgcode Posted December 24, 2011 Report Share Posted December 24, 2011 Given that the OpenG standard is LV9, we should be posting VIs and snippets in that version. It is important to optimize for that version as well. Yes, please post in LabVIEW 2009 (however, I understand that you may not be able to) It's just going to make the reviewing process more difficult. Additionally proposals should be VIs not snippets. Cheers -JG Quote Link to comment
jcarmody Posted December 24, 2011 Report Share Posted December 24, 2011 Yes, please post in LabVIEW 2009 (however, I understand that you may not be able to) You can if you use the Code Capture Tool. Something could be said about eating dog food... 2 Quote Link to comment
jgcode Posted December 24, 2011 Report Share Posted December 24, 2011 You can if you use the Code Capture Tool. Something could be said about eating dog food... As mentioned above - VIs should be posted, as well as (or opposed) to snippets, for reviews. Save for Previous would be a better workaround to host the VI. Snippets are good to view the code in the browser (same as posting an image). Quote Link to comment
Wouter Posted December 24, 2011 Author Report Share Posted December 24, 2011 Okay, well here are the VI's then :-) (I could not edit the opening posts) StrHammingDistance.vi StrHammingWeight.vi Quote Link to comment
Yair Posted December 25, 2011 Report Share Posted December 25, 2011 You can if you use the Code Capture Tool. Something could be said about eating dog food... Jon isn't one of the CCT developers. That would be Ton (mostly) and me. 1 Quote Link to comment
jgcode Posted December 25, 2011 Report Share Posted December 25, 2011 Jon isn't one of the CCT developers. That would be Ton (mostly) and me. I could be wrong but I didn't take that as what jcarmody was saying (as in the context of the conversation I would not be the one using the CCT to post a snippet, Wouter would be) - I took it more as eating the LAVA community's dog food. And yes, I am not a CCT developer - all props to Ton and Yair 1 Quote Link to comment
Wouter Posted December 26, 2011 Author Report Share Posted December 26, 2011 Euh ontopic ? Quote Link to comment
Ton Plomp Posted December 28, 2011 Report Share Posted December 28, 2011 Yes, back on topic... So the 'hamming distance' is that it counts the non-zero characters? Perhaps any of these implementations are faster: Ton Quote Link to comment
Wouter Posted December 28, 2011 Author Report Share Posted December 28, 2011 @Ton: you mean the hamming weight... http://en.wikipedia.org/wiki/Hamming_weight, and yes. not the hamming distance ;-) http://en.wikipedia.org/wiki/Hamming_distance Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.