function apply_rw(data::Array{Float64},W::Matrix{Float64};vcfg::Union{Nothing,Vector{Int32}}=nothing)
function apply_rw(data::Array{Float64},W::Matrix{Float64},id::Union{String,Nothing}=nothing;vcfg::Union{Nothing,Vector{Int32}}=nothing)
nc=isnothing(vcfg)?collect(1:size(data,1)):vcfg
W1=W[1,nc]
W2=W[2,nc]
=======
function apply_rw(data::Array{Float64},W::Matrix{Float64},id::Union{String,Nothing}=nothing)
nc=size(data,1)
W1=W[1,1:nc]
W2=W[2,1:nc]
>>>>>>>alejandro
ifid=="J303"||id=="J303r003"
W_J303=[1foriin1:length(data)]
...
...
@@ -167,11 +160,7 @@ corr_pp = corr_obs.(data)
corr_pp_r = corr_obs.(data, rw=[rw1, rw2])
```
"""
<<<<<<<HEAD
function corr_obs(cdata::CData;real::Bool=true,rw::Union{Array{Float64,2},Nothing}=nothing,L::Int64=1,info::Bool=false,idm::Union{Vector{Int64},Nothing}=nothing,nms::Int64=Int64(maximum(cdata.vcfg)))
=======
function corr_obs(cdata::CData;real::Bool=true,rw::Union{Array{Float64,2},Nothing}=nothing,L::Int64=1,info::Bool=false,flag_strange::Bool=false)
>>>>>>>alejandro
function corr_obs(cdata::CData;real::Bool=true,rw::Union{Array{Float64,2},Nothing}=nothing,L::Int64=1,info::Bool=false,idm::Union{Vector{Int64},Nothing}=nothing,nms::Int64=Int64(maximum(cdata.vcfg)),flag_strange::Bool=false)
@@ -212,11 +191,7 @@ function corr_obs(cdata::CData; real::Bool=true, rw::Union{Array{Float64, 2}, No
end
#function corr_obs for R != 1
#TODO: vcfg with gaps
<<<<<<<HEAD
function corr_obs(cdata::Array{CData,1};real::Bool=true,rw::Union{Array{Array{Float64,2},1},Nothing}=nothing,L::Int64=1,info::Bool=false,idm::Union{Vector{Int64},Nothing}=nothing,nms::Union{Int64,Nothing}=nothing)
=======
function corr_obs(cdata::Array{CData,1};real::Bool=true,rw::Union{Array{Array{Float64,2},1},Nothing}=nothing,L::Int64=1,info::Bool=false,flag_strange::Bool=false)
>>>>>>>alejandro
function corr_obs(cdata::Array{CData,1};real::Bool=true,rw::Union{Array{Array{Float64,2},1},Nothing}=nothing,L::Int64=1,info::Bool=false,idm::Union{Vector{Int64},Nothing}=nothing,nms::Union{Int64,Nothing}=nothing,flag_strange::Bool=false)
nr=length(cdata)
id=getfield.(cdata,:id)
vcfg=getfield.(cdata,:vcfg)
...
...
@@ -246,11 +221,8 @@ function corr_obs(cdata::Array{CData, 1}; real::Bool=true, rw::Union{Array{Array