pub struct Kcore {
k: u32,
user_k: Option<u32>,
item_k: Option<u32>,
year: Option<i32>,
start: Option<NaiveDate>,
end: Option<NaiveDate>,
output: PathBuf,
input: PathBuf,
}
Expand description
Compute k-cores of interaction records.
Fields§
§k: u32
The size of the k-core.
user_k: Option<u32>
The user rating count for a (ku,ki)-core
item_k: Option<u32>
The item rating count for a (ku,ki)-core
year: Option<i32>
Limit to ratings in a particular year.
start: Option<NaiveDate>
Limit ratings to after a particular date (inclusive)
end: Option<NaiveDate>
Limit ratings to before a particular date (exclusive)
output: PathBuf
The output file.
input: PathBuf
The input file
Trait Implementations§
Source§impl From<Kcore> for RootCommand
impl From<Kcore> for RootCommand
Source§fn from(v: Kcore) -> RootCommand
fn from(v: Kcore) -> RootCommand
Converts to this type from the input type.
Source§impl FromArgMatches for Kcore
impl FromArgMatches for Kcore
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for Kcore
impl RefUnwindSafe for Kcore
impl Send for Kcore
impl Sync for Kcore
impl Unpin for Kcore
impl UnwindSafe for Kcore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more