You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: weightedZIKendall.m
    path of file: ./repos/scGEAToolbox/+pkg
    
    the code of the file until where you have to start completion: % %' the weightedZIKendall function calculates weighted Tau*,
% %' where Tau* is described in Pimentel et al (2015)
% %' doi:10.1016/j.spl.2014.09.002
    
function calculates weighted Tau*,
% %' where Tau* is described in Pimentel et al (2015)
% %' doi:10.1016/j.spl.2014.09.002. This association measure
% %' is defined for zero-inflated, non-negative random variables.
% %'
% %' @title weightedZIKendall
% %' @param x x and y are non-negative data vectors
% %' @param y x and y are non-negative data vectors
% %' @param w weight vector, values should be between 0 and 1
% %' @return \code{numeric} weighted Tau* association value between x and y
%
% %' @examples
% %'
% %' x = pmax(0,rnorm(100))
% %' y = pmax(0,rnorm(100))
% %' w = runif(100)
% %' weightedZIKend